Projects
Eulaceura:Factory
jmh
_service:obs_scm:jopt-simple.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:jopt-simple.patch of Package jmh
# HG changeset patch # Date 1511260104 0 # Tue Nov 21 10:28:24 2017 +0000 # Node ID 731399becd960a450cf277916308dac52c1e2e93 # Parent 7ff584954008f5dc877c590df5d902a0022f7456 Upgrade to latest jopt-simple diff --git a/jmh-core/pom.xml b/jmh-core/pom.xml index 59e927e..6a19c5a 100644 --- a/jmh-core/pom.xml +++ b/jmh-core/pom.xml @@ -59,6 +59,7 @@ questions. <dependency> <groupId>net.sf.jopt-simple</groupId> <artifactId>jopt-simple</artifactId> + <version>5.0.4</version> </dependency> <dependency> <groupId>org.apache.commons</groupId> diff --git a/jmh-core/src/main/java/org/openjdk/jmh/runner/options/IntegerValueConverter.java b/jmh-core/src/main/java/org/openjdk/jmh/runner/options/IntegerValueConverter.java index 430c5ac..83be90f 100644 --- a/jmh-core/src/main/java/org/openjdk/jmh/runner/options/IntegerValueConverter.java +++ b/jmh-core/src/main/java/org/openjdk/jmh/runner/options/IntegerValueConverter.java @@ -66,7 +66,7 @@ public class IntegerValueConverter implements ValueConverter<Integer> { } @Override - public Class<Integer> valueType() { + public Class<? extends Integer> valueType() { return TO_INT_CONVERTER.valueType(); } diff --git a/jmh-core/src/main/java/org/openjdk/jmh/runner/options/ThreadsValueConverter.java b/jmh-core/src/main/java/org/openjdk/jmh/runner/options/ThreadsValueConverter.java index c88f876..c032eac 100644 --- a/jmh-core/src/main/java/org/openjdk/jmh/runner/options/ThreadsValueConverter.java +++ b/jmh-core/src/main/java/org/openjdk/jmh/runner/options/ThreadsValueConverter.java @@ -42,7 +42,7 @@ public class ThreadsValueConverter implements ValueConverter<Integer> { } @Override - public Class<Integer> valueType() { + public Class<? extends Integer> valueType() { return IntegerValueConverter.POSITIVE.valueType(); } diff --git a/jmh-core/src/test/java/org/openjdk/jmh/runner/options/TestOptions.java b/jmh-core/src/test/java/org/openjdk/jmh/runner/options/TestOptions.java index c3f8f97..4c19e76 100644 --- a/jmh-core/src/test/java/org/openjdk/jmh/runner/options/TestOptions.java +++ b/jmh-core/src/test/java/org/openjdk/jmh/runner/options/TestOptions.java @@ -244,7 +244,7 @@ public class TestOptions { new CommandLineOptions("-t", "0"); Assert.fail(); } catch (CommandLineOptionException e) { - Assert.assertEquals("Cannot parse argument '0' of option ['t']. The given value 0 should be positive", e.getMessage()); + Assert.assertEquals("Cannot parse argument '0' of option t. The given value 0 should be positive", e.getMessage()); } } @@ -264,7 +264,7 @@ public class TestOptions { new CommandLineOptions("-t", "-1"); Assert.fail(); } catch (CommandLineOptionException e) { - Assert.assertEquals("Cannot parse argument '-1' of option ['t']. The given value -1 should be positive", e.getMessage()); + Assert.assertEquals("Cannot parse argument '-1' of option t. The given value -1 should be positive", e.getMessage()); } } @@ -274,7 +274,7 @@ public class TestOptions { new CommandLineOptions("-t", "-42"); Assert.fail(); } catch (CommandLineOptionException e) { - Assert.assertEquals("Cannot parse argument '-42' of option ['t']. The given value -42 should be positive", e.getMessage()); + Assert.assertEquals("Cannot parse argument '-42' of option t. The given value -42 should be positive", e.getMessage()); } } @@ -337,7 +337,7 @@ public class TestOptions { new CommandLineOptions("-tg", "-1,-2"); Assert.fail(); } catch (CommandLineOptionException e) { - Assert.assertEquals("Cannot parse argument '-1' of option ['tg']. The given value -1 should be non-negative", e.getMessage()); + Assert.assertEquals("Cannot parse argument '-1' of option tg. The given value -1 should be non-negative", e.getMessage()); } } @@ -395,7 +395,7 @@ public class TestOptions { new CommandLineOptions("-wi", "-1"); Assert.fail(); } catch (CommandLineOptionException e) { - Assert.assertEquals("Cannot parse argument '-1' of option ['wi']. The given value -1 should be non-negative", e.getMessage()); + Assert.assertEquals("Cannot parse argument '-1' of option wi. The given value -1 should be non-negative", e.getMessage()); } } @@ -439,7 +439,7 @@ public class TestOptions { new CommandLineOptions("-i", "0"); Assert.fail(); } catch (CommandLineOptionException e) { - Assert.assertEquals("Cannot parse argument '0' of option ['i']. The given value 0 should be positive", e.getMessage()); + Assert.assertEquals("Cannot parse argument '0' of option i. The given value 0 should be positive", e.getMessage()); } } @@ -515,7 +515,7 @@ public class TestOptions { new CommandLineOptions("-opi", "0"); Assert.fail(); } catch (CommandLineOptionException e) { - Assert.assertEquals("Cannot parse argument '0' of option ['opi']. The given value 0 should be positive", e.getMessage()); + Assert.assertEquals("Cannot parse argument '0' of option opi. The given value 0 should be positive", e.getMessage()); } } @@ -559,7 +559,7 @@ public class TestOptions { new CommandLineOptions("-f", "-1"); Assert.fail(); } catch (CommandLineOptionException e) { - Assert.assertEquals("Cannot parse argument '-1' of option ['f']. The given value -1 should be non-negative", e.getMessage()); + Assert.assertEquals("Cannot parse argument '-1' of option f. The given value -1 should be non-negative", e.getMessage()); } } @@ -598,7 +598,7 @@ public class TestOptions { new CommandLineOptions("-wf", "-1"); Assert.fail(); } catch (CommandLineOptionException e) { - Assert.assertEquals("Cannot parse argument '-1' of option ['wf']. The given value -1 should be non-negative", e.getMessage()); + Assert.assertEquals("Cannot parse argument '-1' of option wf. The given value -1 should be non-negative", e.getMessage()); } } @@ -678,7 +678,7 @@ public class TestOptions { new CommandLineOptions("-bs", "0"); Assert.fail(); } catch (CommandLineOptionException e) { - Assert.assertEquals("Cannot parse argument '0' of option ['bs']. The given value 0 should be positive", e.getMessage()); + Assert.assertEquals("Cannot parse argument '0' of option bs. The given value 0 should be positive", e.getMessage()); } } @@ -710,7 +710,7 @@ public class TestOptions { new CommandLineOptions("-wbs", "0"); Assert.fail(); } catch (CommandLineOptionException e) { - Assert.assertEquals("Cannot parse argument '0' of option ['wbs']. The given value 0 should be positive", e.getMessage()); + Assert.assertEquals("Cannot parse argument '0' of option wbs. The given value 0 should be positive", e.getMessage()); } } -- 2.33.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2