From 8f38511900984dc96c709a5851b585f7b8330c3f Mon Sep 17 00:00:00 2001 From: "cmzmasek@gmail.com" Date: Tue, 26 Nov 2013 02:08:51 +0000 Subject: [PATCH] inprogress --- .../surfacing/BasicBinaryDomainCombination.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/forester/java/src/org/forester/surfacing/BasicBinaryDomainCombination.java b/forester/java/src/org/forester/surfacing/BasicBinaryDomainCombination.java index b813c8a..35ce62f 100644 --- a/forester/java/src/org/forester/surfacing/BasicBinaryDomainCombination.java +++ b/forester/java/src/org/forester/surfacing/BasicBinaryDomainCombination.java @@ -34,20 +34,20 @@ import org.forester.util.ForesterUtil; public class BasicBinaryDomainCombination implements BinaryDomainCombination { - final static Map id2str = new HashMap(); - final static Map str2id = new HashMap(); - static short count = 0; - short _id0; - short _id1; + final static Map id2str = new HashMap(); + final static Map str2id = new HashMap(); + static short count = 0; + short _id0; + short _id1; public static short getId( final String id ) { if ( !str2id.containsKey( id ) ) { if ( count > ...) error - id2str.put( ( int ) count, id ); - str2id.put( id, ( int ) count ); + id2str.put( count, id ); + str2id.put( id, count ); ++count; } - return Short.valueOf( str2id.get( id ) + "" ); + return str2id.get( id ) ; } public static String getStr( final short id ) { -- 1.7.10.2