Skip to content

Commit

Permalink
solve issue #2184 (smart quotes in log messages) (#2185)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold authored Jan 19, 2024
1 parent a9d9fde commit f156ce9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions jme3-core/src/main/java/com/jme3/util/MemoryUtils.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2021 jMonkeyEngine
* Copyright (c) 2009-2024 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -70,7 +70,8 @@ public static long getDirectMemoryUsage() {
Long value = (Long)mbeans.getAttribute(directPool, "MemoryUsed");
return value == null ? -1 : value;
} catch (JMException ex) {
Logger.getLogger(MemoryUtils.class.getName()).log(Level.SEVERE, "Error retrieving ‘MemoryUsed’", ex);
Logger.getLogger(MemoryUtils.class.getName())
.log(Level.SEVERE, "Error retrieving MemoryUsed", ex);
return -1;
}
}
Expand All @@ -84,7 +85,7 @@ public static long getDirectMemoryCount() {
Long value = (Long)mbeans.getAttribute(directPool, "Count");
return value == null ? -1 : value;
} catch (JMException ex) {
Logger.getLogger(MemoryUtils.class.getName()).log(Level.SEVERE, "Error retrieving Count", ex);
Logger.getLogger(MemoryUtils.class.getName()).log(Level.SEVERE, "Error retrieving Count", ex);
return -1;
}
}
Expand All @@ -99,7 +100,8 @@ public static long getDirectMemoryTotalCapacity() {
Long value = (Long)mbeans.getAttribute(directPool, "TotalCapacity");
return value == null ? -1 : value;
} catch (JMException ex) {
Logger.getLogger(MemoryUtils.class.getName()).log(Level.SEVERE, "Error retrieving ‘TotalCapacity’", ex);
Logger.getLogger(MemoryUtils.class.getName())
.log(Level.SEVERE, "Error retrieving TotalCapacity", ex);
return -1;
}
}
Expand Down

0 comments on commit f156ce9

Please sign in to comment.