Skip to content

Commit

Permalink
Retter test.
Browse files Browse the repository at this point in the history
  • Loading branch information
raphw committed Nov 4, 2023
1 parent 529d6b4 commit e997263
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ public void testExplicitConstructionOfUnknownVersion() throws Exception {
Pattern pattern = Pattern.compile("V[0-9]+(_[0-9]+)?");
for (Field field : Opcodes.class.getFields()) {
if (pattern.matcher(field.getName()).matches()) {
if (version < Double.parseDouble(field.getName().substring(1).replace('_', '.'))) {
double candidate = Double.parseDouble(field.getName().substring(1).replace('_', '.'));
if (version < candidate) {
version = candidate;
value = field.getInt(null);
}
}
Expand Down

0 comments on commit e997263

Please sign in to comment.