public static synchronized CoderResult malformedForLength(int length)throws IllegalArgumentException {if (length > 0) {Integer key = Integer.valueOf(length);synchronized (_malformedErrors) {CoderResult r = _malformedErrors.get(key);if (r == null) {r = new CoderResult(TYPE_MALFORMED_INPUT, length);_malformedErrors.put(key, r);}return r;}}throw new IllegalArgumentException("Length must be greater than 0; was " + length);}
public static java.nio.charset.CoderResult malformedForLength(int length_1){lock (typeof(CoderResult)){if (length_1 > 0){int key = Sharpen.Util.IntValueOf(length_1);lock (_malformedErrors){java.nio.charset.CoderResult r = _malformedErrors.get(key);if (r == null){r = new java.nio.charset.CoderResult(TYPE_MALFORMED_INPUT, length_1);_malformedErrors.put(key, r);}return r;}}throw new System.ArgumentException("Length must be greater than 0; was " + length_1);}}