nebius/SWE-rebench-V2-PRs huggingface dataset:
Repository: eclipse/microprofile-lra
Pull request #89 (2019-02-05 11:09:13)

issue83 Move LRAInfo into TCK
Fixes issue #83 
The class LRAInfo is only ever used by the TCK so it should be moved into that module

The fix also fixes a checkstyle issue for an unused import in LRAClient that was introduced in PR #82 


Patch:
diff --git a/api/src/main/java/org/eclipse/microprofile/lra/client/LRAClient.java b/api/src/main/java/org/eclipse/microprofile/lra/client/LRAClient.java
index 9096f63..2b2432d 100644
--- a/api/src/main/java/org/eclipse/microprofile/lra/client/LRAClient.java
+++ b/api/src/main/java/org/eclipse/microprofile/lra/client/LRAClient.java
@@ -21,7 +21,6 @@
 package org.eclipse.microprofile.lra.client;
 
 import org.eclipse.microprofile.lra.annotation.LRAStatus;
-import org.eclipse.microprofile.lra.annotation.ParticipantStatus;
 
 import javax.ws.rs.NotFoundException;
 import java.net.URI;
diff --git a/api/src/main/java/org/eclipse/microprofile/lra/client/LRAInfo.java b/tck/src/main/java/org/eclipse/microprofile/lra/tck/LRAInfo.java
similarity index 97%
rename from api/src/main/java/org/eclipse/microprofile/lra/client/LRAInfo.java
rename to tck/src/main/java/org/eclipse/microprofile/lra/tck/LRAInfo.java
index 86fc831..1a9d901 100644
--- a/api/src/main/java/org/eclipse/microprofile/lra/client/LRAInfo.java
+++ b/tck/src/main/java/org/eclipse/microprofile/lra/tck/LRAInfo.java
@@ -18,7 +18,7 @@
  * limitations under the License.
  *******************************************************************************/
 
-package org.eclipse.microprofile.lra.client;
+package org.eclipse.microprofile.lra.tck;
 
 /**
  * Data object carrying information about an instance
diff --git a/tck/src/main/java/org/eclipse/microprofile/lra/tck/spi/ManagementSPI.java b/tck/src/main/java/org/eclipse/microprofile/lra/tck/spi/ManagementSPI.java
index 26639d7..02d426b 100644
--- a/tck/src/main/java/org/eclipse/microprofile/lra/tck/spi/ManagementSPI.java
+++ b/tck/src/main/java/org/eclipse/microprofile/lra/tck/spi/ManagementSPI.java
@@ -20,7 +20,7 @@
 package org.eclipse.microprofile.lra.tck.spi;
 
 import org.eclipse.microprofile.lra.annotation.LRAStatus;
-import org.eclipse.microprofile.lra.client.LRAInfo;
+import org.eclipse.microprofile.lra.tck.LRAInfo;
 
 import javax.ws.rs.NotFoundException;
 import java.net.URL;


Test patch:
diff --git a/tck/src/main/java/org/eclipse/microprofile/lra/tck/TckTests.java b/tck/src/main/java/org/eclipse/microprofile/lra/tck/TckTests.java
index 2cb7159..3f6376a 100644
--- a/tck/src/main/java/org/eclipse/microprofile/lra/tck/TckTests.java
+++ b/tck/src/main/java/org/eclipse/microprofile/lra/tck/TckTests.java
@@ -22,7 +22,6 @@ package org.eclipse.microprofile.lra.tck;
 import org.eclipse.microprofile.lra.annotation.LRAStatus;
 import org.eclipse.microprofile.lra.client.GenericLRAException;
 import org.eclipse.microprofile.lra.client.LRAClient;
-import org.eclipse.microprofile.lra.client.LRAInfo;
 import org.eclipse.microprofile.lra.tck.spi.ManagementSPI;
 import org.eclipse.microprofile.lra.tck.participant.api.StandardController;
 import org.junit.After;