Commit ca8c106f authored by Mart Lubbers's avatar Mart Lubbers

Remove deprecated Integer object creation

parent 1de6489e
......@@ -10,3 +10,6 @@
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
# build directory
build
......@@ -7,6 +7,15 @@
<body bgcolor="#FFFFFF">
<h2>Changes in SSM</h2>
<h3></h3>
<h3>Version 2.3.0</h3>
<ul>
<li>20191206 (additions by M Lubbers and T Churchman
<ul>
<li>Made to work in Java 9</li>
<li>Various stability fixes in the graphics routine</li>
</ul>
</li>
</ul>
<h3>Version 2.2.0</h3>
<ul>
<li>20150616 (additions by H Berntsen)
......
......@@ -35,12 +35,12 @@ public class Config
public static final int allowedAutomaticMemoryIncrease
= 100 ;
public static final String version() { return "2.2.0" ; }
public static final String version() { return "2.3.0" ; }
public static final String versionDate() { return "June 16, 2015" ; }
public static final String versionDate() { return "December 06, 2019" ; }
public static final String author() { return "Atze Dijkstra, Utrecht University" ; }
public static final String author() { return "Atze Dijkstra, Utrecht University, with adaptations from mart@cs.ru.nl and thomas@kepow.nl" ; }
public static final String authorEmail() { return "atze@uu.nl" ; }
public static final String authorEmail() { return "atze@uu.nl, mart@cs.ru.nl" ; }
}
......@@ -321,7 +321,7 @@ public class Instruction
public static Instruction findByCode( int code )
{
return codeToInstr.get( new Integer( code ) ) ;
return codeToInstr.get( code ) ;
}
......@@ -370,7 +370,7 @@ public class Instruction
this.nrStackOpnds = nSt ;
this.nrStackResults = nR ;
codeToInstr.put( new Integer( code ), this ) ;
codeToInstr.put( code, this ) ;
reprToInstr.put( repr, this ) ;
brccInfo = null ;
......
......@@ -25,7 +25,7 @@ public class MemoryCellEvent extends UndoableEvent
super( src, mdf ) ;
event = CELL ;
cellIndex = which ;
oldCellValue = new Integer( previous ) ;
oldCellValue = previous ;
}
protected MemoryCellEvent( Object src, int which, MemoryAnnotation previous, Modification mdf )
......
......@@ -109,7 +109,7 @@ public class Registers extends AbstractMemoryCellModel
messenger.println
( java.text.MessageFormat.format
( "attempt to access nonexisting register {0,number,integer}"
, new Object[] { new Integer(r) }
, new Object[] { r }
) ) ;
}
return ! res ;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment