Custom Query (1911 matches)


Show under each result:

Results (52 - 54 of 1911)

Ticket Resolution Summary Owner Reporter
#436 fixed Platform dependent encoding instead of UTF-8 in DataHelper zzz John Doo
Description contains the following lines:

private final static byte SEMICOLON_BYTES[] = ";".getBytes(); in UTF-8 private final static byte EQUAL_BYTES[] = "=".getBytes(); in UTF-8

As the comment already says, the byte-arrays are supposed to contain an UTF-8 encoding of ';' and '=', but actually they contain an platform-dependent encoding. So I suggest to replace it by:

private static final Charset UTF_8 = Charset.forName("UTF-8"); private static final byte[] EQUAL_BYTES = "=".getBytes(UTF_8); in UTF-8 private static final byte[] SEMICOLON_BYTES = ";".getBytes(UTF_8); in UTF-8

[Using a (final static) Charset has the advantage that's not necessary to put getBytes in a try-catch-clause.]

#437 fixed Superfluous comparisons in DataHelper.eq(byte[], byte[]) John Doo
Description[], byte[]) performs superfluous comparisons, as someone in a comment already suspected:

this appears to be the way Arrays.equals is defined, so all the extra tests are unnecessary?

boolean eq = (((lhs == null) && (rhs == null))
((lhs != null) &&(rhs != null) && (Arrays.equals(lhs, rhs))));

return eq;

I can confirm that Arrays.equals returns exactly the same results as this expression, so I suggest to replace it by: return Arrays.equals(lhs, rhs);

#838 fixed I2PBote Errors HungryHobo L0rD`

[I2PSendQueue] : Can't send packet. Connection timed out at net.i2p.client.streaming.I2PSocketManagerFull.connect( at net.i2p.client.streaming.I2PSocketManagerFull.connect( at at at at

[Kademlia ] ademlia.ClosestNodesLookupTask?: Lookup for closest nodes timed out.

[OutboxProcsr?] p.bote.service.OutboxProcessor?: Can't scan outbox.

i2p.bote.fileencryption.PasswordException? at i2p.bote.fileencryption.EncryptedInputStream?.<init>(EncryptedInputStream?.java:59) at<init>( at i2p.bote.folder.EmailFolder?.createFolderElement(EmailFolder?.java:421) at i2p.bote.folder.EmailFolder?.createFolderElement(EmailFolder?.java:57) at i2p.bote.folder.Folder$3.findNextElement( at i2p.bote.folder.Folder$3.hasNext( at i2p.bote.service.OutboxProcessor?.doStep(OutboxProcessor?.java:99) at

(These messages repeat ∞ in the log-router-1.txt )

I2P version: 0.9.4-0 Java version: Oracle Corporation 1.7.0_09 (OpenJDK Runtime Environment 1.7.0_09-b30) Wrapper version: 3.1.1 Server version: 6.1.26 Servlet version: Jasper JSP 2.1 Engine Platform: Linux i386 3.5.0-21-generic Processor: uninitialized (core2) Jbigi: Locally optimized native BigInteger? library loaded from file Encoding: UTF-8 Charset: UTF-8

Note: See TracQuery for help on using queries.