- use Integer.valueOf(int) instead of new Integer(int) in ogg streaming

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8822 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 13 years ago
parent 4e66dddc95
commit d39c9ef6da
  1. 2
      engine/src/jogg/com/jme3/audio/plugins/CachedOggStream.java
  2. 2
      engine/src/jogg/com/jme3/audio/plugins/UncachedOggStream.java

@ -81,7 +81,7 @@ public class CachedOggStream implements PhysicalOggStream {
}
private LogicalOggStream getLogicalStream(int serialNumber) {
return logicalStreams.get(new Integer(serialNumber));
return logicalStreams.get(Integer.valueOf(serialNumber));
}
public Collection<LogicalOggStream> getLogicalStreams() {

@ -119,7 +119,7 @@ public class UncachedOggStream implements PhysicalOggStream {
}
private LogicalOggStream getLogicalStream(int serialNumber) {
return logicalStreams.get(new Integer(serialNumber));
return logicalStreams.get(Integer.valueOf(serialNumber));
}
public Collection<LogicalOggStream> getLogicalStreams() {

Loading…
Cancel
Save