1 |
/* LogRecord.java |
/* LogRecord.java -- |
2 |
-- a class for the state associated with individual logging events |
A class for the state associated with individual logging events |
3 |
|
Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. |
|
Copyright (C) 2002, 2003 Free Software Foundation, Inc. |
|
4 |
|
|
5 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
6 |
|
|
34 |
or based on this library. If you modify this library, you may extend |
or based on this library. If you modify this library, you may extend |
35 |
this exception to your version of the library, but you are not |
this exception to your version of the library, but you are not |
36 |
obligated to do so. If you do not wish to do so, delete this |
obligated to do so. If you do not wish to do so, delete this |
37 |
exception statement from your version. |
exception statement from your version. */ |
|
|
|
|
*/ |
|
38 |
|
|
39 |
|
|
40 |
package java.util.logging; |
package java.util.logging; |
381 |
/** |
/** |
382 |
* The last used sequence number for any LogRecord. |
* The last used sequence number for any LogRecord. |
383 |
*/ |
*/ |
384 |
private static long lastSeqNum = 0; |
private static long lastSeqNum; |
385 |
|
|
386 |
|
|
387 |
/** |
/** |
388 |
* Allocates a sequence number for a new LogRecord. This class |
* Allocates a sequence number for a new LogRecord. This class |
389 |
* method is only called by the LogRecord constructor. |
* method is only called by the LogRecord constructor. |
390 |
*/ |
*/ |
391 |
private synchronized static long allocateSeqNum() |
private static synchronized long allocateSeqNum() |
392 |
{ |
{ |
393 |
lastSeqNum += 1; |
lastSeqNum += 1; |
394 |
return lastSeqNum; |
return lastSeqNum; |