/*
 * Copyright 2009-2014, Acciente LLC
 *
 * Acciente LLC licenses this file to you under the
 * Apache License, Version 2.0 (the "License"); you
 * may not use this file except in compliance with the
 * License. You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in
 * writing, software distributed under the License is
 * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
 * OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing
 * permissions and limitations under the License.
 */
package com.acciente.oacc;

import java.io.Serializable;

public class Resources {
   public static Resource getInstance(long resourceId) {
      return new ResourceImpl(resourceId);
   }

   private static class ResourceImpl implements Resource, Serializable {
      private final Long resourceId;

      private ResourceImpl(long resourceId) {
         this.resourceId = resourceId;
      }

      @Override
      public long getId() {
         return resourceId;
      }

      public String toString() {
         return "R(" + Long.toString(resourceId) + ")";
      }

      @Override
      public boolean equals(Object other) {
         if (this == other) {
            return true;
         }
         if (other == null || getClass() != other.getClass()) {
            return false;
         }

         ResourceImpl otherResource = (ResourceImpl) other;

         if (!resourceId.equals(otherResource.resourceId)) {
            return false;
         }

         return true;
      }

      @Override
      public int hashCode() {
         return resourceId.hashCode();
      }
   }
}

@@ -1110,106 +1110,8 @@
  %7D%0A%0A
-      public String toString() %7B%0A         return %22R(%22 + Long.toString(resourceId) + %22)%22;%0A      %7D%0A%0A
     
@@ -1613,20 +1613,134 @@
 e();%0A      %7D
+%0A%0A      @Override%0A      public String toString() %7B%0A         return %22R(%22 + Long.toString(resourceId) + %22)%22;%0A      %7D
 %0A   %7D%0A%7D%0A

Add more missing @Override annotations in the Resource interface implementor