Skip to content

Commit e9821aa

Browse files
committed
checkstyle updates
1 parent 9796d9e commit e9821aa

File tree

4 files changed

+173
-178
lines changed

4 files changed

+173
-178
lines changed

core/src/main/java/org/owasp/encoder/EncodedWriter.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,7 @@ public EncodedWriter(Writer out, Encoder encoder) {
118118
* @param contextName the encoding context name.
119119
* @throws UnsupportedContextException if the contextName is unrecognized or not supported.
120120
*/
121-
public EncodedWriter(Writer out, String contextName)
122-
throws UnsupportedContextException {
121+
public EncodedWriter(Writer out, String contextName) throws UnsupportedContextException {
123122
this(out, Encoders.forName(contextName));
124123
}
125124

@@ -168,8 +167,7 @@ private void flushBufferToWriter() throws IOException {
168167
* @param input the next input to encode, or null if at end of file.
169168
* @throws IOException from the underlying writer.
170169
*/
171-
private void flushLeftOver(CharBuffer input)
172-
throws IOException {
170+
private void flushLeftOver(CharBuffer input) throws IOException {
173171
if (!_hasLeftOver) {
174172
return;
175173
}

core/src/main/java/org/owasp/encoder/URIEncoder.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,7 @@ protected int firstEncodedOffset(String input, int off, int len) {
279279
}
280280

281281
@Override
282-
protected CoderResult encodeArrays(
283-
CharBuffer input, CharBuffer output, boolean endOfInput) {
282+
protected CoderResult encodeArrays(CharBuffer input, CharBuffer output, boolean endOfInput) {
284283
final char[] in = input.array();
285284
final char[] out = output.array();
286285
int i = input.arrayOffset() + input.position();

src/main/config/checkstyle-header.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,3 @@
3131
^// STRICT LIABILITY, OR TORT \(INCLUDING NEGLIGENCE OR OTHERWISE\)\s*$
3232
^// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED\s*$
3333
^// OF THE POSSIBILITY OF SUCH DAMAGE\.\s*$
34-
^\s*$
35-
^package

0 commit comments

Comments
 (0)