Stop using the old JSR250 annotation.
This will likely break a bunch of things because things further down the line were depending on narya bringing in this jar.
This commit is contained in:
@@ -23,11 +23,6 @@
|
|||||||
<artifactId>guice</artifactId>
|
<artifactId>guice</artifactId>
|
||||||
<version>5.1.0</version>
|
<version>5.1.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>javax.annotation</groupId>
|
|
||||||
<artifactId>jsr250-api</artifactId>
|
|
||||||
<version>1.0</version>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<!-- optional dependencies -->
|
<!-- optional dependencies -->
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
package com.threerings.admin.data;
|
package com.threerings.admin.data;
|
||||||
|
|
||||||
import javax.annotation.Generated;
|
import javax.annotation.processing.Generated;
|
||||||
|
|
||||||
import com.threerings.presents.data.ClientObject;
|
import com.threerings.presents.data.ClientObject;
|
||||||
import com.threerings.presents.data.InvocationMarshaller;
|
import com.threerings.presents.data.InvocationMarshaller;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
package com.threerings.admin.server;
|
package com.threerings.admin.server;
|
||||||
|
|
||||||
import javax.annotation.Generated;
|
import javax.annotation.processing.Generated;
|
||||||
|
|
||||||
import com.threerings.presents.data.ClientObject;
|
import com.threerings.presents.data.ClientObject;
|
||||||
import com.threerings.presents.server.InvocationException;
|
import com.threerings.presents.server.InvocationException;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
package com.threerings.bureau.data;
|
package com.threerings.bureau.data;
|
||||||
|
|
||||||
import javax.annotation.Generated;
|
import javax.annotation.processing.Generated;
|
||||||
import com.threerings.presents.dobj.DObject;
|
import com.threerings.presents.dobj.DObject;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
package com.threerings.bureau.data;
|
package com.threerings.bureau.data;
|
||||||
|
|
||||||
import javax.annotation.Generated;
|
import javax.annotation.processing.Generated;
|
||||||
|
|
||||||
import com.threerings.presents.data.ClientObject;
|
import com.threerings.presents.data.ClientObject;
|
||||||
import com.threerings.presents.data.InvocationMarshaller;
|
import com.threerings.presents.data.InvocationMarshaller;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
package com.threerings.bureau.server;
|
package com.threerings.bureau.server;
|
||||||
|
|
||||||
import javax.annotation.Generated;
|
import javax.annotation.processing.Generated;
|
||||||
|
|
||||||
import com.threerings.presents.data.ClientObject;
|
import com.threerings.presents.data.ClientObject;
|
||||||
import com.threerings.presents.server.InvocationProvider;
|
import com.threerings.presents.server.InvocationProvider;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
package com.threerings.crowd.chat.data;
|
package com.threerings.crowd.chat.data;
|
||||||
|
|
||||||
import javax.annotation.Generated;
|
import javax.annotation.processing.Generated;
|
||||||
|
|
||||||
import com.threerings.presents.data.ClientObject;
|
import com.threerings.presents.data.ClientObject;
|
||||||
import com.threerings.presents.data.InvocationMarshaller;
|
import com.threerings.presents.data.InvocationMarshaller;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
package com.threerings.crowd.chat.data;
|
package com.threerings.crowd.chat.data;
|
||||||
|
|
||||||
import javax.annotation.Generated;
|
import javax.annotation.processing.Generated;
|
||||||
|
|
||||||
import com.threerings.util.Name;
|
import com.threerings.util.Name;
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
package com.threerings.crowd.chat.data;
|
package com.threerings.crowd.chat.data;
|
||||||
|
|
||||||
import javax.annotation.Generated;
|
import javax.annotation.processing.Generated;
|
||||||
|
|
||||||
import com.threerings.presents.data.ClientObject;
|
import com.threerings.presents.data.ClientObject;
|
||||||
import com.threerings.presents.data.InvocationMarshaller;
|
import com.threerings.presents.data.InvocationMarshaller;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
package com.threerings.crowd.chat.server;
|
package com.threerings.crowd.chat.server;
|
||||||
|
|
||||||
import javax.annotation.Generated;
|
import javax.annotation.processing.Generated;
|
||||||
|
|
||||||
import com.threerings.presents.data.ClientObject;
|
import com.threerings.presents.data.ClientObject;
|
||||||
import com.threerings.presents.server.InvocationProvider;
|
import com.threerings.presents.server.InvocationProvider;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
package com.threerings.crowd.chat.server;
|
package com.threerings.crowd.chat.server;
|
||||||
|
|
||||||
import javax.annotation.Generated;
|
import javax.annotation.processing.Generated;
|
||||||
|
|
||||||
import com.threerings.presents.data.ClientObject;
|
import com.threerings.presents.data.ClientObject;
|
||||||
import com.threerings.presents.server.InvocationProvider;
|
import com.threerings.presents.server.InvocationProvider;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
package com.threerings.crowd.data;
|
package com.threerings.crowd.data;
|
||||||
|
|
||||||
import javax.annotation.Generated;
|
import javax.annotation.processing.Generated;
|
||||||
|
|
||||||
import com.threerings.presents.data.ClientObject;
|
import com.threerings.presents.data.ClientObject;
|
||||||
import com.threerings.presents.data.InvocationMarshaller;
|
import com.threerings.presents.data.InvocationMarshaller;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
package com.threerings.crowd.data;
|
package com.threerings.crowd.data;
|
||||||
|
|
||||||
import javax.annotation.Generated;
|
import javax.annotation.processing.Generated;
|
||||||
import com.threerings.util.Name;
|
import com.threerings.util.Name;
|
||||||
|
|
||||||
import com.threerings.presents.data.ClientObject;
|
import com.threerings.presents.data.ClientObject;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
package com.threerings.crowd.data;
|
package com.threerings.crowd.data;
|
||||||
|
|
||||||
import javax.annotation.Generated;
|
import javax.annotation.processing.Generated;
|
||||||
|
|
||||||
import com.threerings.presents.data.ClientObject;
|
import com.threerings.presents.data.ClientObject;
|
||||||
import com.threerings.presents.data.InvocationMarshaller;
|
import com.threerings.presents.data.InvocationMarshaller;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
package com.threerings.crowd.data;
|
package com.threerings.crowd.data;
|
||||||
|
|
||||||
import javax.annotation.Generated;
|
import javax.annotation.processing.Generated;
|
||||||
import com.threerings.util.Name;
|
import com.threerings.util.Name;
|
||||||
|
|
||||||
import com.threerings.presents.dobj.DObject;
|
import com.threerings.presents.dobj.DObject;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
package com.threerings.crowd.peer.data;
|
package com.threerings.crowd.peer.data;
|
||||||
|
|
||||||
import javax.annotation.Generated;
|
import javax.annotation.processing.Generated;
|
||||||
import com.threerings.presents.dobj.DSet;
|
import com.threerings.presents.dobj.DSet;
|
||||||
import com.threerings.presents.peer.data.NodeObject;
|
import com.threerings.presents.peer.data.NodeObject;
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
package com.threerings.crowd.peer.data;
|
package com.threerings.crowd.peer.data;
|
||||||
|
|
||||||
import javax.annotation.Generated;
|
import javax.annotation.processing.Generated;
|
||||||
|
|
||||||
import com.threerings.util.Name;
|
import com.threerings.util.Name;
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
package com.threerings.crowd.peer.server;
|
package com.threerings.crowd.peer.server;
|
||||||
|
|
||||||
import javax.annotation.Generated;
|
import javax.annotation.processing.Generated;
|
||||||
|
|
||||||
import com.threerings.util.Name;
|
import com.threerings.util.Name;
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
package com.threerings.crowd.server;
|
package com.threerings.crowd.server;
|
||||||
|
|
||||||
import javax.annotation.Generated;
|
import javax.annotation.processing.Generated;
|
||||||
|
|
||||||
import com.threerings.presents.data.ClientObject;
|
import com.threerings.presents.data.ClientObject;
|
||||||
import com.threerings.presents.server.InvocationProvider;
|
import com.threerings.presents.server.InvocationProvider;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
package com.threerings.crowd.server;
|
package com.threerings.crowd.server;
|
||||||
|
|
||||||
import javax.annotation.Generated;
|
import javax.annotation.processing.Generated;
|
||||||
|
|
||||||
import com.threerings.presents.data.ClientObject;
|
import com.threerings.presents.data.ClientObject;
|
||||||
import com.threerings.presents.server.InvocationException;
|
import com.threerings.presents.server.InvocationException;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
package com.threerings.presents.data;
|
package com.threerings.presents.data;
|
||||||
|
|
||||||
import javax.annotation.Generated;
|
import javax.annotation.processing.Generated;
|
||||||
import com.threerings.util.Name;
|
import com.threerings.util.Name;
|
||||||
|
|
||||||
import com.threerings.presents.client.InvocationReceiver;
|
import com.threerings.presents.client.InvocationReceiver;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
package com.threerings.presents.data;
|
package com.threerings.presents.data;
|
||||||
|
|
||||||
import javax.annotation.Generated;
|
import javax.annotation.processing.Generated;
|
||||||
|
|
||||||
import com.threerings.presents.client.InvocationReceiver;
|
import com.threerings.presents.client.InvocationReceiver;
|
||||||
import com.threerings.presents.client.RegistrationService;
|
import com.threerings.presents.client.RegistrationService;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
package com.threerings.presents.data;
|
package com.threerings.presents.data;
|
||||||
|
|
||||||
import javax.annotation.Generated;
|
import javax.annotation.processing.Generated;
|
||||||
|
|
||||||
import com.threerings.presents.client.TimeBaseService;
|
import com.threerings.presents.client.TimeBaseService;
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
package com.threerings.presents.data;
|
package com.threerings.presents.data;
|
||||||
|
|
||||||
import javax.annotation.Generated;
|
import javax.annotation.processing.Generated;
|
||||||
import com.threerings.presents.dobj.DObject;
|
import com.threerings.presents.dobj.DObject;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
package com.threerings.presents.peer.data;
|
package com.threerings.presents.peer.data;
|
||||||
|
|
||||||
import javax.annotation.Generated;
|
import javax.annotation.processing.Generated;
|
||||||
|
|
||||||
import com.google.common.base.Objects;
|
import com.google.common.base.Objects;
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
package com.threerings.presents.peer.data;
|
package com.threerings.presents.peer.data;
|
||||||
|
|
||||||
import javax.annotation.Generated;
|
import javax.annotation.processing.Generated;
|
||||||
|
|
||||||
import com.threerings.presents.client.InvocationService;
|
import com.threerings.presents.client.InvocationService;
|
||||||
import com.threerings.presents.data.ClientObject;
|
import com.threerings.presents.data.ClientObject;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
package com.threerings.presents.peer.server;
|
package com.threerings.presents.peer.server;
|
||||||
|
|
||||||
import javax.annotation.Generated;
|
import javax.annotation.processing.Generated;
|
||||||
|
|
||||||
import com.threerings.presents.client.InvocationService;
|
import com.threerings.presents.client.InvocationService;
|
||||||
import com.threerings.presents.data.ClientObject;
|
import com.threerings.presents.data.ClientObject;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
package com.threerings.presents.server;
|
package com.threerings.presents.server;
|
||||||
|
|
||||||
import javax.annotation.Generated;
|
import javax.annotation.processing.Generated;
|
||||||
|
|
||||||
import com.threerings.presents.client.InvocationReceiver;
|
import com.threerings.presents.client.InvocationReceiver;
|
||||||
import com.threerings.presents.client.RegistrationService;
|
import com.threerings.presents.client.RegistrationService;
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ package com.threerings.presents.data;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import javax.annotation.Generated;
|
import javax.annotation.processing.Generated;
|
||||||
|
|
||||||
import com.threerings.presents.client.InvocationService;
|
import com.threerings.presents.client.InvocationService;
|
||||||
import com.threerings.presents.client.TestService;
|
import com.threerings.presents.client.TestService;
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
package com.threerings.presents.data;
|
package com.threerings.presents.data;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import javax.annotation.Generated;
|
import javax.annotation.processing.Generated;
|
||||||
|
|
||||||
import com.threerings.presents.dobj.DObject;
|
import com.threerings.presents.dobj.DObject;
|
||||||
import com.threerings.presents.dobj.OidList;
|
import com.threerings.presents.dobj.OidList;
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ package com.threerings.presents.server;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import javax.annotation.Generated;
|
import javax.annotation.processing.Generated;
|
||||||
|
|
||||||
import com.threerings.presents.client.InvocationService;
|
import com.threerings.presents.client.InvocationService;
|
||||||
import com.threerings.presents.client.TestService;
|
import com.threerings.presents.client.TestService;
|
||||||
|
|||||||
@@ -231,7 +231,7 @@ public class GenServiceTask extends InvocationTask
|
|||||||
// import things marshaller will always need
|
// import things marshaller will always need
|
||||||
imports.add(sdesc.service);
|
imports.add(sdesc.service);
|
||||||
imports.add(InvocationMarshaller.class);
|
imports.add(InvocationMarshaller.class);
|
||||||
imports.add("javax.annotation.Generated");
|
imports.add("javax.annotation.processing.Generated");
|
||||||
|
|
||||||
// We only add a type parameter for the caller ClientObject type if the service has one
|
// We only add a type parameter for the caller ClientObject type if the service has one
|
||||||
if (sdesc.callerTypeSpecified) {
|
if (sdesc.callerTypeSpecified) {
|
||||||
@@ -512,7 +512,7 @@ public class GenServiceTask extends InvocationTask
|
|||||||
// import superclass and service
|
// import superclass and service
|
||||||
imports.add(InvocationProvider.class);
|
imports.add(InvocationProvider.class);
|
||||||
imports.add(sdesc.service);
|
imports.add(sdesc.service);
|
||||||
imports.add("javax.annotation.Generated");
|
imports.add("javax.annotation.processing.Generated");
|
||||||
|
|
||||||
// any method that takes a listener may throw this
|
// any method that takes a listener may throw this
|
||||||
if (sdesc.hasAnyListenerArgs()) {
|
if (sdesc.hasAnyListenerArgs()) {
|
||||||
|
|||||||
@@ -203,7 +203,7 @@ public class SourceFile
|
|||||||
*/
|
*/
|
||||||
protected void addOrRemoveGeneratedImport (boolean add)
|
protected void addOrRemoveGeneratedImport (boolean add)
|
||||||
{
|
{
|
||||||
final String IMPORT = "import javax.annotation.Generated;";
|
final String IMPORT = "import javax.annotation.processing.Generated;";
|
||||||
|
|
||||||
int packageLine = -1;
|
int packageLine = -1;
|
||||||
int importLine = -1;
|
int importLine = -1;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
package {{package}};
|
package {{package}};
|
||||||
|
|
||||||
import javax.annotation.Generated;
|
import javax.annotation.processing.Generated;
|
||||||
|
|
||||||
{{#imports}}
|
{{#imports}}
|
||||||
import {{this}};
|
import {{this}};
|
||||||
|
|||||||
Reference in New Issue
Block a user