Skip to content

Commit

Permalink
Remove trailing whitespace from sources
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Feb 3, 2023
1 parent d199ef3 commit 31d4d85
Show file tree
Hide file tree
Showing 204 changed files with 1,268 additions and 1,268 deletions.
18 changes: 9 additions & 9 deletions src/main/java/com/fasterxml/jackson/core/Base64Variant.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* variant of Base64 encoding/decoding is to be used. Although there is
* somewhat standard basic version (so-called "MIME Base64"), other variants
* exists, see <a href="http://en.wikipedia.org/wiki/Base64">Base64 Wikipedia entry</a> for details.
*
*
* @author Tatu Saloranta
*/
public final class Base64Variant
Expand Down Expand Up @@ -47,7 +47,7 @@ public enum PaddingReadBehaviour {
}

private final static int INT_SPACE = 0x20;

// We'll only serialize name
private static final long serialVersionUID = 1L;

Expand Down Expand Up @@ -366,7 +366,7 @@ public boolean acceptsPaddingOnRead() {
/**
* @param c Character to decode
*
* @return 6-bit decoded value, if valid character;
* @return 6-bit decoded value, if valid character;
*/
public int decodeBase64Char(char c)
{
Expand Down Expand Up @@ -535,12 +535,12 @@ public int encodeBase64Partial(int bits, int outputBytes, byte[] buffer, int out
/* Convenience conversion methods for String to/from bytes use case
/**********************************************************
*/

/**
* Convenience method for converting given byte array as base64 encoded
* String using this variant's settings.
* Resulting value is "raw", that is, not enclosed in double-quotes.
*
*
* @param input Byte array to encode
*
* @return Base64 encoded String of encoded {@code input} bytes, not surrounded by quotes
Expand All @@ -555,7 +555,7 @@ public String encode(byte[] input)
* using this variant's settings, optionally enclosed in double-quotes.
* Linefeeds added, if needed, are expressed as 2-character JSON (and Java source)
* escape sequence of backslash + `n`.
*
*
* @param input Byte array to encode
* @param addQuotes Whether to surround resulting value in double quotes or not
*
Expand Down Expand Up @@ -610,7 +610,7 @@ public String encode(byte[] input, boolean addQuotes)
* Convenience method for converting given byte array as base64 encoded String
* using this variant's settings, optionally enclosed in double-quotes.
* Linefeed character to use is passed explicitly.
*
*
* @param input Byte array to encode
* @param addQuotes Whether to surround resulting value in double quotes or not
* @param linefeed Linefeed to use for encoded content
Expand Down Expand Up @@ -664,7 +664,7 @@ public String encode(byte[] input, boolean addQuotes, String linefeed)
* @param input Base64-encoded input String to decode
*
* @return Byte array of decoded contents
*
*
* @since 2.3
*
* @throws IllegalArgumentException if input is not valid base64 encoded data
Expand Down Expand Up @@ -735,7 +735,7 @@ public void decode(String str, ByteArrayBuilder builder) throws IllegalArgumentE
}
ch = str.charAt(ptr++);
bits = decodeBase64Char(ch);

// First branch: can get padding (-> 1 byte)
if (bits < 0) {
if (bits != Base64Variant.BASE64_VALUE_PADDING) {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/fasterxml/jackson/core/FormatFeature.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*<p>
* Since 2.12 this is more of an extra marker feature, as its core API is now
* defined in more general {@link JacksonFeature}.
*
*
* @since 2.6
*/
public interface FormatFeature
Expand All @@ -21,7 +21,7 @@ public interface FormatFeature
*/
@Override
public boolean enabledByDefault();

/**
* Returns bit mask for this feature instance; must be a single bit,
* that is of form <code>(1 &lt;&lt; N)</code>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ protected JacksonException(String msg, Throwable rootCause) {
* to set it; this means that caller needs to take care to check for nulls.
* Subtypes override this method with co-variant return type, for more
* type-safe access.
*
*
* @return Originating processor, if available; {@code null} if not.
*/
public abstract Object getProcessor();
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/fasterxml/jackson/core/JsonEncoding.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public enum JsonEncoding {
private final boolean _bigEndian;

private final int _bits;

JsonEncoding(String javaName, boolean bigEndian, int bits)
{
_javaName = javaName;
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/com/fasterxml/jackson/core/JsonFactoryBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public JsonFactoryBuilder configure(JsonWriteFeature f, boolean state) {
}

// // // JSON-specific helper objects, settings

/**
* Method for defining custom escapes factory uses for {@link JsonGenerator}s
* it creates.
Expand All @@ -146,7 +146,7 @@ public JsonFactoryBuilder characterEscapes(CharacterEscapes esc) {
/**
* Method that allows overriding String used for separating root-level
* JSON values (default is single space character)
*
*
* @param sep Separator to use, if any; null means that no separator is
* automatically added
*
Expand All @@ -160,7 +160,7 @@ public JsonFactoryBuilder rootValueSeparator(String sep) {
/**
* Method that allows overriding String used for separating root-level
* JSON values (default is single space character)
*
*
* @param sep Separator to use, if any; null means that no separator is
* automatically added
*
Expand All @@ -182,7 +182,7 @@ public JsonFactoryBuilder rootValueSeparator(SerializableString sep) {
* NOTE! Lowest legal value (aside from marker 0) is 127: for ASCII range, other checks apply
* and this threshold is ignored. If value between [1, 126] is specified, 127 will be
* used instead.
*
*
* @param maxNonEscaped Highest character code that is NOT automatically escaped; if
* positive value above 0, or 0 to indicate that no automatic escaping is applied
* beside from what JSON specification requires (and possible custom escape settings).
Expand Down Expand Up @@ -222,7 +222,7 @@ public JsonFactoryBuilder quoteChar(char ch) {
}

// // // Accessors for JSON-specific settings

public CharacterEscapes characterEscapes() { return _characterEscapes; }
public SerializableString rootValueSeparator() { return _rootValueSeparator; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public JsonGenerationException(String msg, JsonGenerator g) {
super(msg, g);
_processor = g;
}

// @since 2.7
public JsonGenerationException(String msg, Throwable rootCause, JsonGenerator g) {
super(msg, rootCause, g);
Expand Down
Loading

0 comments on commit 31d4d85

Please sign in to comment.