GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — introduce PMD/category/java/bestpractices.xml/OneDeclarationPerLine rule · scribejava/scribejava@f70aaa3

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • pmd.xml
  • scribejava-core/src/main/java/com/github/scribejava/core/java8
    • Base64.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎pmd.xml‎

Copy file name to clipboardExpand all lines: pmd.xml
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,9 @@
1010

1111
<rule ref="category/java/bestpractices.xml/AvoidPrintStackTrace" />
1212
<rule ref="category/java/bestpractices.xml/MissingOverride" />
13+
<rule ref="category/java/bestpractices.xml/OneDeclarationPerLine">
14+
<properties>
15+
<property name="strictMode">true</property>
16+
</properties>
17+
</rule>
1318
</ruleset>
Collapse file

‎scribejava-core/src/main/java/com/github/scribejava/core/java8/Base64.java‎

Copy file name to clipboardExpand all lines: scribejava-core/src/main/java/com/github/scribejava/core/java8/Base64.java
+5-2Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,8 @@ public ByteBuffer decode(ByteBuffer buffer) {
566566
int pos0 = buffer.position();
567567
try {
568568
byte[] src;
569-
int sp, sl;
569+
int sp;
570+
int sl;
570571
if (buffer.hasArray()) {
571572
src = buffer.array();
572573
sp = buffer.arrayOffset() + buffer.position();
@@ -725,7 +726,9 @@ private int decode0(byte[] src, int sp, int sl, byte[] dst) {
725726
private static class EncOutputStream extends FilterOutputStream {
726727

727728
private int leftover;
728-
private int b0, b1, b2;
729+
private int b0;
730+
private int b1;
731+
private int b2;
729732
private boolean closed;
730733

731734
private final char[] base64; // byte->base64 mapping

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.