Skip to content

Commit

Permalink
Merge pull request #123 from holgerfriedrich/cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bmalinowsky authored Oct 24, 2023
2 parents 052e249 + 0d71b3a commit ab1c7f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/io/calimero/dptxlator/DPTXlatorDateTime.java
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,7 @@ else if (++day == 1) {
int dow = DAYS.length - 1;
while (dow >= 0 && !DAYS[dow].toLowerCase().startsWith(prefix))
--dow;
final boolean anyday = dow == 0 && t.hasMoreTokens() && t.nextToken().equalsIgnoreCase("day");
final boolean anyday = dow == 0 && t.hasMoreTokens() && "day".equalsIgnoreCase(t.nextToken());
if (dow <= 0 && !anyday)
throw newException("wrong weekday", s, null);
set(dst, index, DOW, dow);
Expand Down
2 changes: 1 addition & 1 deletion test/io/calimero/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ private static boolean matchesPrefix(final InterfaceAddress ia, final InetAddres
*
* @return socket address
*/
public synchronized static InetSocketAddress getServer()
public static synchronized InetSocketAddress getServer()
{
// we try once to find our running test server, on failure subsequent calls will
// immediately return to speed up tests
Expand Down

0 comments on commit ab1c7f4

Please sign in to comment.