Quantcast
Channel: Random Thoughts » Bad Code
Viewing all articles
Browse latest Browse all 3

Sadly Singleton

$
0
0
Here is some code I came across today: public class SingletonWannabe { private static String SERVER_URL; private static int port; private static String protocol; public SingletonWannabe(String url, int port, String protocol) { this.SERVER_URL = url; this.port = port; this.protocol = protocol; } public static String getServerUrl() { return SERVER_URL; } public static int getPort() { […]

Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images