You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by jl...@apache.org on 2004/02/24 19:07:18 UTC

cvs commit: incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/kernel/management ManagedObject.java

jlaskowski    2004/02/24 10:07:18

  Modified:    modules/kernel/src/java/org/apache/geronimo/gbean/jmx
                        AbstractManagedObject.java
               modules/kernel/src/java/org/apache/geronimo/kernel/management
                        ManagedObject.java
  Log:
  typos removal
  
  Revision  Changes    Path
  1.4       +16 -16    incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/gbean/jmx/AbstractManagedObject.java
  
  Index: AbstractManagedObject.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/gbean/jmx/AbstractManagedObject.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- AbstractManagedObject.java	22 Jan 2004 20:58:40 -0000	1.3
  +++ AbstractManagedObject.java	24 Feb 2004 18:07:18 -0000	1.4
  @@ -274,7 +274,7 @@
        * @param type the notification type to send
        */
       public final void sendNotification(String type) {
  -        assert !Thread.holdsLock(this): "This method cannot be called while holding a syncrhonized lock on this";
  +        assert !Thread.holdsLock(this): "This method cannot be called while holding a synchronized lock on this";
           long seq;
           synchronized (this) {
               seq = sequenceNumber++;
  @@ -283,7 +283,7 @@
       }
   
       public void sendNotification(Notification notification) {
  -        assert !Thread.holdsLock(this): "This method cannot be called while holding a syncrhonized lock on this";
  +        assert !Thread.holdsLock(this): "This method cannot be called while holding a synchronized lock on this";
           notificationBroadcaster.sendNotification(notification);
       }
   
  @@ -302,7 +302,7 @@
        * @throws java.lang.Exception  If an exception occurs while starting this MBean
        */
       public final void start() throws Exception {
  -        assert !Thread.holdsLock(this): "This method cannot be called while holding a syncrhonized lock on this";
  +        assert !Thread.holdsLock(this): "This method cannot be called while holding a synchronized lock on this";
   
           // Move to the starting state
           synchronized (this) {
  @@ -327,7 +327,7 @@
        * @throws java.lang.Exception  if a problem occurs will starting this MBean or any child MBean
        */
       public final void startRecursive() throws Exception {
  -        assert !Thread.holdsLock(this): "This method cannot be called while holding a syncrhonized lock on this";
  +        assert !Thread.holdsLock(this): "This method cannot be called while holding a synchronized lock on this";
   
           State state = getStateInstance();
           if (state != State.STOPPED && state != State.FAILED) {
  @@ -409,7 +409,7 @@
        * is a bad idea and therefore not allowed.
        */
       final void fail() {
  -        assert !Thread.holdsLock(this): "This method cannot be called while holding a syncrhonized lock on this";
  +        assert !Thread.holdsLock(this): "This method cannot be called while holding a synchronized lock on this";
   
           synchronized (this) {
               State state = getStateInstance();
  @@ -430,7 +430,7 @@
        * Note: Do not call this from within a synchronized block as it makes may send a JMX notification
        */
       void attemptFullStart() throws Exception {
  -        assert !Thread.holdsLock(this): "This method cannot be called while holding a syncrhonized lock on this";
  +        assert !Thread.holdsLock(this): "This method cannot be called while holding a synchronized lock on this";
   
           State newState = null;
           try {
  @@ -542,10 +542,10 @@
        * If an exception occurs while stopping the component, the component will be failed.
        * @throws java.lang.Exception if a problem occurs while stopping the component
        *
  -     * Note: Do not call this from within a synchronized block as it makes may send a JMX notification
  +     * Note: Do not call this from within a synchronized block as it may send a JMX notification
        */
       void attemptFullStop() throws Exception {
  -        assert !Thread.holdsLock(this): "This method cannot be called while holding a syncrhonized lock on this";
  +        assert !Thread.holdsLock(this): "This method cannot be called while holding a synchronized lock on this";
   
           State newState = null;
           try {
  @@ -609,13 +609,13 @@
       }
   
       /**
  -     * Call safe fail, but catches all RutimeExceptions and Errors.
  +     * Calls {@link #doFail}, but catches all RutimeExceptions and Errors.
        * These problems are logged but ignored.
        *
        * Note: This must be called while holding a lock on this
        */
       private void doSafeFail() {
  -        assert Thread.holdsLock(this): "This method can only called while holding a syncrhonized lock on this";
  +        assert Thread.holdsLock(this): "This method can only called while holding a synchronized lock on this";
   
           try {
               doFail();
  @@ -678,7 +678,7 @@
               case State.STOPPING_INDEX:
               case State.FAILED_INDEX:
                   throw new IllegalStateException(
  -                        "Can not transition to " + newState + " state from " + state);
  +                        "Cannot transition to " + newState + " state from " + state);
               }
               break;
   
  @@ -691,7 +691,7 @@
               case State.STOPPED_INDEX:
               case State.STARTING_INDEX:
                   throw new IllegalStateException(
  -                        "Can not transition to " + newState + " state from " + state);
  +                        "Cannot transition to " + newState + " state from " + state);
               }
               break;
   
  @@ -704,7 +704,7 @@
               case State.STARTING_INDEX:
               case State.RUNNING_INDEX:
                   throw new IllegalStateException(
  -                        "Can not transition to " + newState + " state from " + state);
  +                        "Cannot transition to " + newState + " state from " + state);
               }
               break;
   
  @@ -717,7 +717,7 @@
               case State.RUNNING_INDEX:
               case State.STOPPING_INDEX:
                   throw new IllegalStateException(
  -                        "Can not transition to " + newState + " state from " + state);
  +                        "Cannot transition to " + newState + " state from " + state);
               }
               break;
   
  @@ -730,7 +730,7 @@
               case State.STOPPED_INDEX:
               case State.FAILED_INDEX:
                   throw new IllegalStateException(
  -                        "Can not transition to " + newState + " state from " + state);
  +                        "Cannot transition to " + newState + " state from " + state);
               }
               break;
           }
  
  
  
  1.2       +2 -2      incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/kernel/management/ManagedObject.java
  
  Index: ManagedObject.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/kernel/management/ManagedObject.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ManagedObject.java	8 Sep 2003 04:38:34 -0000	1.1
  +++ ManagedObject.java	24 Feb 2004 18:07:18 -0000	1.2
  @@ -84,7 +84,7 @@
       boolean isStateManageable();
   
       /**
  -     * Determines if this object implemnts the statistics provider type defined in the J2EE Management specification.
  +     * Determines if this object implements the statistics provider type defined in the J2EE Management specification.
        *
        * @return true if this class also implements the state manageable type; false otherwise
        */