Skip to content

Commit

Permalink
Fix sonar warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
zapek committed Jan 18, 2025
1 parent fedae46 commit dd062c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019-2023 by David Gerber - https://zapek.com
* Copyright (c) 2019-2025 by David Gerber - https://zapek.com
*
* This file is part of Xeres.
*
Expand Down Expand Up @@ -107,9 +107,7 @@ public ContentImage(Image image, Region parent)
if (parent != null)
{
syncImageWidth(node, parent.getWidth());
parent.widthProperty().addListener((observable, oldValue, newValue) -> {
syncImageWidth(node, newValue.doubleValue());
});
parent.widthProperty().addListener((observable, oldValue, newValue) -> syncImageWidth(node, newValue.doubleValue()));

node.setPreserveRatio(true);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 by David Gerber - https://zapek.com
* Copyright (c) 2024-2025 by David Gerber - https://zapek.com
*
* This file is part of Xeres.
*
Expand Down Expand Up @@ -27,14 +27,14 @@
import java.util.prefs.Preferences;

/**
* Service to help get a proper preference so that multiple clients can run concurrently.
* Utility class to help get a proper preference so that multiple clients can run concurrently.
* The path to check is:
* <ul>
* <li>Windows: Registry, HKCU\Software\JavaSoft\Prefs (the '/' in front of capital letters in keys and values is an attempt by Sun to make the registry case sensitive)</li>
* <li>Linux: $HOME/.java</li>
* </ul>
*/
public class PreferenceUtils
public final class PreferenceUtils
{
public static final String CONTACTS = "Contacts";
public static final String CHAT_ROOMS = "Chatrooms";
Expand Down

0 comments on commit dd062c8

Please sign in to comment.