• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package test.thread;
2 
3 import java.util.Map;
4 
5 public class BaseSequentialSample {
6 
addId(String method, long id)7   protected void addId(String method, long id) {
8     ppp(method + " ID:" + id);
9     getMap().put(id, id);
10   }
11 
getMap()12   Map getMap() {
13     Map result = Helper.getMap(getClass().getName());
14     ppp("RETURNING MAP " + result + " THIS:" + this);
15 
16     return result;
17   }
18 
ppp(String s)19   protected void ppp(String s) {
20     if (false) {
21       System.out.println("[" + getClass().getName() + " "
22           + Thread.currentThread().getId() + " "
23           + "] " + s);
24     }
25   }
26 }
27