Skip to content

Commit e5560d1

Browse files
committed
[WFLY-20352] Fix compilation warnings on ejb-txn-remote-call and kitchensink quickstarts
1 parent 65655aa commit e5560d1

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

ejb-txn-remote-call/client/pom.xml

-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@
174174
<plugin>
175175
<artifactId>maven-war-plugin</artifactId>
176176
<configuration>
177-
<warName>client</warName>
178177
<failOnMissingWebXml>false</failOnMissingWebXml>
179178
</configuration>
180179
</plugin>

ejb-txn-remote-call/client/src/main/java/org/jboss/as/quickstarts/ejb/client/UsersManagement.java

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public class UsersManagement {
3737
@PersistenceContext
3838
EntityManager em;
3939

40+
@SuppressWarnings("unchecked")
4041
public List<CallerUser> getUsers() {
4142
return em.createQuery(
4243
"SELECT u FROM " + CallerUser.class.getSimpleName() + " u").getResultList();

ejb-txn-remote-call/server/pom.xml

+2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
<description>The project is the application to be deployed on the second server to receive the call</description>
3737

3838
<properties>
39+
<!-- the Maven project should use the minimum Java SE version supported -->
40+
<maven.compiler.release>17</maven.compiler.release>
3941
<!-- the version for the Server -->
4042
<version.server>35.0.0.Final</version.server>
4143
<!-- the versions for BOMs, Packs and Plugins -->

kitchensink/src/main/java/org/jboss/as/quickstarts/kitchensink/util/KitchensinkMessages.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,17 @@
2121
import org.jboss.logging.annotations.Message;
2222
import org.jboss.logging.annotations.MessageBundle;
2323

24+
import java.lang.invoke.MethodHandles;
25+
2426

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

31-
KitchensinkMessages MESSAGES = Messages.getBundle(KitchensinkMessages.class, FacesContext.getCurrentInstance()
32-
.getViewRoot().getLocale());
33+
KitchensinkMessages MESSAGES = Messages.getBundle(MethodHandles.lookup(), KitchensinkMessages.class, FacesContext.getCurrentInstance()
34+
.getViewRoot().getLocale());
3335

3436
@Message("Registered!")
3537
String registeredMessage();

0 commit comments

Comments
 (0)