Skip to content

Commit

Permalink
Merge pull request #1013 from emmartins/WFLY-20352
Browse files Browse the repository at this point in the history
[WFLY-20352] Fix compilation warnings on ejb-txn-remote-call and kitc…
  • Loading branch information
emmartins authored Feb 11, 2025
2 parents 65655aa + e5560d1 commit 43bf54b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
1 change: 0 additions & 1 deletion ejb-txn-remote-call/client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<warName>client</warName>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public class UsersManagement {
@PersistenceContext
EntityManager em;

@SuppressWarnings("unchecked")
public List<CallerUser> getUsers() {
return em.createQuery(
"SELECT u FROM " + CallerUser.class.getSimpleName() + " u").getResultList();
Expand Down
2 changes: 2 additions & 0 deletions ejb-txn-remote-call/server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
<description>The project is the application to be deployed on the second server to receive the call</description>

<properties>
<!-- the Maven project should use the minimum Java SE version supported -->
<maven.compiler.release>17</maven.compiler.release>
<!-- the version for the Server -->
<version.server>35.0.0.Final</version.server>
<!-- the versions for BOMs, Packs and Plugins -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,17 @@
import org.jboss.logging.annotations.Message;
import org.jboss.logging.annotations.MessageBundle;

import java.lang.invoke.MethodHandles;


/**
* @author <a href="mailto:[email protected]">James R. Perkins</a>
*/
@MessageBundle(projectCode = "")
public interface KitchensinkMessages {

KitchensinkMessages MESSAGES = Messages.getBundle(KitchensinkMessages.class, FacesContext.getCurrentInstance()
.getViewRoot().getLocale());
KitchensinkMessages MESSAGES = Messages.getBundle(MethodHandles.lookup(), KitchensinkMessages.class, FacesContext.getCurrentInstance()
.getViewRoot().getLocale());

@Message("Registered!")
String registeredMessage();
Expand Down

0 comments on commit 43bf54b

Please sign in to comment.