1 2 3 4
final private static Map<String,DataType> table=new HashMap <String,DataType>(); ///.. ...
1 2 3 4
// Check to make sure value is non-null and matches CSS grammar // A property may contain more than one class name so we need to // check each potential class name in the string. ...
Java Validate CSS classnames in ...
I have a map of strings whe...
1 2 3 4
public class Singleton { // Private constructor prevents instantiation from other classes private Singleton() {} ...
Java Laisy Singleton patern
There is a very important g...
1 2 3 4
public class Pseudonym<T extends Pseudo> { private T alias; private T original; ...
Java Limiting two arguments to t...
Hi, I just want to disallow...
1 2 3 4
private LinkedList<String> basePackages; private String getAttribute( Node node, String name ) ...
Java Get a package name or packa...
by https://www.google.com/accounts/o8/id?id=AItOawmcK8sVHybv2DEt4Muzx_2tJvN4hJIVK1s,
June 22, 2010 21:42,
1 refactoring, tagged with dom, xml, java
Figures out the current ful...
1 2 3 4
try { conn = DBConnection.getDBConnection(); String SQL = "{call PACKAGE.PROCEDURE(?, ?)}"; ...
Java Repetitive code to interact...
In my project, I do see lot...
1 2 3 4
a) Obj p = curScope.locals, last = null; ...
Java Linked list traversal, comp...
by maroloccio.blogspot.com,
February 24, 2010 18:11,
1 refactoring, tagged with linked-list, traversing, java
I got this:
a) // see be...
1 2 3 4
import javax.swing.JOptionPane; public class Rational { ...
Java Rational numbers - Problem :/
by omygoodness.myopenid.com,
January 03, 2010 15:35,
1 refactoring, tagged with rational numbers, java, comparsions, less than or
Hi,
I have a problem with ...
1 2 3 4
import java.util.ArrayList; import java.util.Random; ...
Java Problem with Permutation Class
by b-kovar.myopenid.com,
November 07, 2009 03:12,
1 refactoring
Alright, so for out class, ...
1 2 3 4
//the code below is the class public class FactorGenerator ...
Java FactorGenerator Class &...
by b-kovar.myopenid.com,
October 19, 2009 21:07,
1 refactoring, tagged with Factor Generator Class Tester
Hello, I am making a Factor...
1 2 3 4
/* * To change this template, choose Tools | Templates * and open the template in the editor. ...
Java Refactor my brute forcer!
by mdw7.blogspot.com,
October 18, 2009 21:28,
1 refactoring
Can you improve the speed o...
1 2 3 4
private void schematronTransformation() throws TransformerException { TransformerFactory tf = TransformerFactory.newInstance(); ...
Java Multiple XSLT for Schematro...
by DaJunkie,
October 09, 2009 10:39,
1 refactoring, tagged with schematron, xslt, transform, pipe, jaxp, dom, sax, java, xml, validate
I want to validate some XML...
1 2 3 4
String className = file.getAbsolutePath(); /* TODO, replace this with regex is possible */ ...
Java replace with regex
Can this be refactored to u...
1 2 3 4
// FIELD private ArrayList<Item> owned = new ArrayList<Item>(); // in the Constructor I inizialize this field to null ...
Java java.lang.NullPointerException
by okram87.myopenid.com,
May 25, 2009 20:25,
2 refactorings
why this.getOwned().add(ite...
1 2 3 4
public void draw() { switch(direction) ...
Java Snake Game Logic?
by gmaster1440.myopenid.com,
May 25, 2009 02:55,
2 refactorings, tagged with java, snake game, snake, game, logic, timer, pause
I'm having a lot of trouble...
1 2 3 4
public static String findsite(InputStream text) { String site, line = null; Boolean nospace = true; ...
Java speed up this horrendous co...
I don't know too much about...
1 2 3 4
public static Matrices add(Matrices a, Matrices b) { int rows = a.getRows(); ...
Java Conditional operator refact...
I want to modify this code ...
1 2 3 4
private final String DO_NOT_TRANSLATE_TAG = "skip"; /** ...
Java replace by tag
by mikenereson.blogspot.com,
April 24, 2009 19:17,
3 refactorings
replaces value between two ...
1 2 3 4
public class Stats { public int HP; public int STR; ...
Java Stats
this is the most idiotic co...
1 2 3 4
package engine; import junit.framework.Assert; ...
Java Refactor, fix and optimize ...
by programmer-offsite,
April 20, 2009 14:15,
4 refactorings, tagged with optimize, strings, refactor, java, character
While tuning the applicatio...
1 2 3 4
Sub Initialize Dim customername As String Dim servername As String ...
Java First LotusScript Agent
This agent reads a log and ...
1 2 3
public class ServicesRunner { ...
Java Separate thread logic from ...
by andreamoz.blogspot.com,
March 12, 2009 14:03,
1 refactoring, tagged with thread, command, delegation, state
The ServicesRunner start th...
Having a table with pairs o...