diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-12 15:27:21 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-19 14:57:18 +0200 |
commit | 4b4bff34027cca49fd13e82d33d1b399848838fa (patch) | |
tree | 361bde1ae9cf88160694bec9d5f3c1893d398f66 /xmlsecurity | |
parent | c552aac9f889b094caaa35c3fd9d12fe7c3fc73c (diff) |
java: no need to instantiate String objects directly
Change-Id: I7610774c94bf673ed3b574ffce04c4ee6ca93c03
Diffstat (limited to 'xmlsecurity')
-rw-r--r-- | xmlsecurity/test_docs/tools/httpserv/src/httpserv/Main.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmlsecurity/test_docs/tools/httpserv/src/httpserv/Main.java b/xmlsecurity/test_docs/tools/httpserv/src/httpserv/Main.java index 4280fb425381..6629a327a0ca 100644 --- a/xmlsecurity/test_docs/tools/httpserv/src/httpserv/Main.java +++ b/xmlsecurity/test_docs/tools/httpserv/src/httpserv/Main.java @@ -110,13 +110,13 @@ public class Main { } static void printUsage() { - String usage = new String( + String usage = "Usage: \n" + "java -jar httpserv [options] \n" + "\n" + "Options are: \n" + "-h --help \t this help \n" + - "-a --accept port \t the port number to which this server listens \n"); + "-a --accept port \t the port number to which this server listens \n"; System.out.println(usage); } } |