@Test public void testGet2() throws Throwable { VolatileSequencer volatileSequencer = new VolatileSequencer(); int result = volatileSequencer.get("testVolatileSequencerCounterName", 0); assertEquals(0, result, "result"); }
synchronized public int get (String counterName, int add) { int i = 0; Integer I = (Integer) map.get (counterName); if (I != null) i = I; i += add; map.put (counterName, i); return i; }
VolatileSequencer implements Sequencer, VolatileSequencerMBean { synchronized public int get (String counterName, int add) { int i = 0; Integer I = (Integer) map.get (counterName); if (I != null) i = I; i += add; map.put (counterName, i); return i; } }
VolatileSequencer implements Sequencer, VolatileSequencerMBean { synchronized public int get (String counterName, int add) { int i = 0; Integer I = (Integer) map.get (counterName); if (I != null) i = I; i += add; map.put (counterName, i); return i; } VolatileSequencer(); }
VolatileSequencer implements Sequencer, VolatileSequencerMBean { synchronized public int get (String counterName, int add) { int i = 0; Integer I = (Integer) map.get (counterName); if (I != null) i = I; i += add; map.put (counterName, i); return i; } VolatileSequencer(); synchronized int get(String counterName, int add); int get(String counterName); synchronized int set(String counterName, int newValue); String[] getCounterNames(); }
VolatileSequencer implements Sequencer, VolatileSequencerMBean { synchronized public int get (String counterName, int add) { int i = 0; Integer I = (Integer) map.get (counterName); if (I != null) i = I; i += add; map.put (counterName, i); return i; } VolatileSequencer(); synchronized int get(String counterName, int add); int get(String counterName); synchronized int set(String counterName, int newValue); String[] getCounterNames();  }