package org.slf4j.converter;

import java.util.HashMap;
import java.util.regex.Pattern;

public class PatternWrapper  {

	private Pattern pattern;
	
	private HashMap<Integer, String> replacementMap;

	public PatternWrapper(Pattern pattern) {
		this.pattern = pattern;
		this.replacementMap = new HashMap<Integer, String>();
	}


	public Pattern getPattern() {
		return pattern;
	}

	public void addReplacement(Integer groupIndex, String replacement) {
		replacementMap.put(groupIndex, replacement);
	}	
	
	public String getReplacement(int groupIndex) {
		return replacementMap.get(new Integer(groupIndex));
	}
	
}

@@ -557,11 +557,15 @@
 ent(
-i
+I
 nt
+eger
  gro
@@ -608,20 +608,8 @@
 get(
-new Integer(
 grou
@@ -615,17 +615,16 @@
 upIndex)
-)
 ;%0D%0A%09%7D%0D%0A%09

use the autoboxing feature of JDK 1.5