OSDN Git Service
(root)
/
stew
/
Stew4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e710355
)
Use Class#getSimpleName instead of Class#getName and String#replace at Command#getUsage
author
argius
<argius.net@gmail.com>
Tue, 7 Jan 2014 13:49:34 +0000
(22:49 +0900)
committer
argius
<argius.net@gmail.com>
Tue, 7 Jan 2014 13:49:34 +0000
(22:49 +0900)
src/net/argius/stew/Command.java
patch
|
blob
|
history
diff --git
a/src/net/argius/stew/Command.java
b/src/net/argius/stew/Command.java
index
93678c4
..
0dd434f
100644
(file)
--- a/
src/net/argius/stew/Command.java
+++ b/
src/net/argius/stew/Command.java
@@
-169,8
+169,7
@@
public abstract class Command {
* @return
*/
protected String getUsage() {
- final String name = getClass().getName().replaceFirst(".*\\.([^\\.]+)", "$1");
- return getMessage("usage." + name);
+ return getMessage("usage." + getClass().getSimpleName());
}
/**