Eclipseの割り当てペインに次の行が表示されます。
Alloc Order Allocation Size Allocated Class
509 12 java.lang.Integer
これは、Javaコードの次の行を参照します。
MyInteger++;
少し変更しましたが、それでも割り当てが発生します。
MyInteger=MyInteger+1;
MyInteger=MyInteger+MyIntegerIncrementor;
これらのコード行が割り当てを引き起こすのはなぜですか?