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 ...

by Zack Mulgrew, July 23, 2010 17:08, No refactoring, tagged with string, foreach, regex

I have a map of strings whe...

05a80d2c7b26a787f4f1742644f76054 Talk
1
2
3
4
public class Singleton {
  // Private constructor prevents instantiation from other classes
  private Singleton() {}
...

Java Laisy Singleton patern

by jumar, July 13, 2010 02:31, No refactoring, tagged with java, singleton, patern

There is a very important g...

B6948c9d003a997fa34de0acda190ef5 Talk
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...

Avatar Talk
1
2
3
4
public class Pseudonym<T extends Pseudo> {
	private T alias;
	private T original;
...

Java Limiting two arguments to t...

by DaJunkie, June 24, 2010 16:42, 1 refactoring, tagged with java, generics, parametrization

Hi, I just want to disallow...

8e21dd65dca319ca81a0cd80393d4c13 Talk
1
2
3
4
try {
	conn = DBConnection.getDBConnection();
	String SQL = "{call PACKAGE.PROCEDURE(?, ?)}";
...

Java Repetitive code to interact...

by shamikm78.myopenid.com, March 15, 2010 17:57, 1 refactoring, tagged with java, JDBC

In my project, I do see lot...

Avatar Talk
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...

Avatar Talk
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 ...

Avatar Talk
1
2
3
4
package config.java;

import java.io.BufferedInputStream;
...

Java Test

by suhasj.myopenid.com, December 04, 2009 05:47, 1 refactoring, tagged with {, }, (, )

This is test class

69dc496c749724ca4ca9faf94b1316d4 Talk
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, ...

Avatar Talk
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...

Avatar Talk
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...

Avatar Talk
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...

8e21dd65dca319ca81a0cd80393d4c13 Talk
1
2
3
4
String className = file.getAbsolutePath();

/* TODO, replace this with regex is possible */
...

Java replace with regex

by mikenereson.blogspot.com, August 07, 2009 13:34, 4 refactorings, tagged with regex

Can this be refactored to u...

9db8f865b1d5f3e3978b37e7a3480cc4 Talk
1
2
3
4
Image background;

try {
...

Java Background Image

by okram87.myopenid.com, June 07, 2009 09:31, 2 refactorings, tagged with background, jframe

Do you know how I can apply...

3f9f2d31e0d42bc91d3135953eb41d2e Talk
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...

4b25b1e093c50b62cdfb4a84d6d3a21e Talk
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...

3f9f2d31e0d42bc91d3135953eb41d2e Talk
1
2
3
4
    public static String findsite(InputStream text) {
      String site, line = null;
      Boolean nospace = true;
...

Java speed up this horrendous co...

by feydr.myopenid.com, May 21, 2009 16:01, 4 refactorings, tagged with java, speed, conditionals

I don't know too much about...

7c3536f0ffdc51a02ec2c9d1d72165d5 Talk
1
2
3
4
public static Matrices add(Matrices a, Matrices b)
    {
        int rows = a.getRows();
...

Java Conditional operator refact...

by Sambob, April 28, 2009 01:23, 2 refactorings, tagged with java

I want to modify this code ...

F94ed31bc99b74602392d052ee5bf901 Talk
1
2
3
4
	public class Stats {
		public int HP;
		public int STR;
...

Java Stats

by staykov.myopenid.com, April 23, 2009 00:59, 4 refactorings, tagged with java, messy

this is the most idiotic co...

Avatar Talk
1
2
3
4
package engine;

import junit.framework.Assert;
...

Java Refactor, fix and optimize ...

by programmer-offsite, April 20, 2009 14:15, 3 refactorings, tagged with optimize, strings, refactor, java, character

While tuning the applicatio...

6f0a7377a1c0faa24f9b60e24ab2af4a Talk
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 ...

9db8f865b1d5f3e3978b37e7a3480cc4 Talk
1
2
3
4
Sub Initialize
    Dim customername As String
    Dim servername As String
...

Java First LotusScript Agent

by jumbo135.myopenid.com, March 17, 2009 09:29, 2 refactorings, tagged with lotus notes, domino

This agent reads a log and ...

8489e5c893d03f39da9df46a24a548c1 Talk
1
2
3
public class ServicesRunner {
...

Java Separate thread logic from ...

by andreamoz.blogspot.com, March 12, 2009 14:03, No refactoring, tagged with thread, command, delegation, state

The ServicesRunner start th...

D0621aae99c6ef29e38f18f15fef3a37 Talk
1
2
3
4
import java.util.Scanner;

class Shape
...

Java my shapes program

by hinduone.myopenid.com, February 22, 2009 17:58, 2 refactorings

woo

Avatar Talk
1
2
3
4
import java.util.Scanner;

public class Main {
...

Java ACSL Pinochle Intermediate ...

by hinduone.myopenid.com, February 08, 2009 05:11, 3 refactorings

w00t

Avatar Talk