src/jdk.internal.opt/share/classes/jdk/internal/joptsimple/UnrecognizedOptionException.java
equal
deleted
inserted
replaced
29 * However, the following notice accompanied the original version of this |
29 * However, the following notice accompanied the original version of this |
30 * file: |
30 * file: |
31 * |
31 * |
32 * The MIT License |
32 * The MIT License |
33 * |
33 * |
34 * Copyright (c) 2004-2014 Paul R. Holser, Jr. |
34 * Copyright (c) 2004-2015 Paul R. Holser, Jr. |
35 * |
35 * |
36 * Permission is hereby granted, free of charge, to any person obtaining |
36 * Permission is hereby granted, free of charge, to any person obtaining |
37 * a copy of this software and associated documentation files (the |
37 * a copy of this software and associated documentation files (the |
38 * "Software"), to deal in the Software without restriction, including |
38 * "Software"), to deal in the Software without restriction, including |
39 * without limitation the rights to use, copy, modify, merge, publish, |
39 * without limitation the rights to use, copy, modify, merge, publish, |
68 UnrecognizedOptionException( String option ) { |
68 UnrecognizedOptionException( String option ) { |
69 super( singletonList( option ) ); |
69 super( singletonList( option ) ); |
70 } |
70 } |
71 |
71 |
72 @Override |
72 @Override |
73 public String getMessage() { |
73 Object[] messageArguments() { |
74 return singleOptionMessage() + " is not a recognized option"; |
74 return new Object[] { singleOptionString() }; |
75 } |
75 } |
76 } |
76 } |