Skip to content

Commit b07f1f5

Browse files
committed
removed warnings we can't resolve
1 parent 883e122 commit b07f1f5

13 files changed

+37
-28
lines changed

src/main/java/org/primefaces/application/DialogViewHandler.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public class DialogViewHandler extends ViewHandlerWrapper {
2525

2626
private ViewHandler wrapped;
2727

28+
@SuppressWarnings("deprecation") // the default constructor is deprecated in JSF 2.3
2829
public DialogViewHandler(ViewHandler wrapped) {
2930
this.wrapped = wrapped;
3031
}

src/main/java/org/primefaces/application/exceptionhandler/PrimeExceptionHandler.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public class PrimeExceptionHandler extends ExceptionHandlerWrapper {
5454

5555
private final ExceptionHandler wrapped;
5656

57+
@SuppressWarnings("deprecation") // the default constructor is deprecated in JSF 2.3
5758
public PrimeExceptionHandler(ExceptionHandler wrapped) {
5859
this.wrapped = wrapped;
5960
}

src/main/java/org/primefaces/application/exceptionhandler/PrimeExceptionHandlerFactory.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public class PrimeExceptionHandlerFactory extends ExceptionHandlerFactory {
2222

2323
private final ExceptionHandlerFactory wrapped;
2424

25+
@SuppressWarnings("deprecation") // the default constructor is deprecated in JSF 2.3
2526
public PrimeExceptionHandlerFactory(final ExceptionHandlerFactory wrapped) {
2627
this.wrapped = wrapped;
2728
}

src/main/java/org/primefaces/application/resource/MoveScriptsToBottomResponseWriter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public class MoveScriptsToBottomResponseWriter extends ResponseWriterWrapper {
3030
private StringBuilder include;
3131
private StringBuilder inline;
3232

33+
@SuppressWarnings("deprecation") // the default constructor is deprecated in JSF 2.3
3334
public MoveScriptsToBottomResponseWriter(ResponseWriter wrapped, MoveScriptsToBottomState state) {
3435
this.wrapped = wrapped;
3536
this.state = state;

src/main/java/org/primefaces/application/resource/PrimeResource.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public class PrimeResource extends ResourceWrapper {
2828
private Resource wrapped;
2929
private String version;
3030

31+
@SuppressWarnings("deprecation") // the default constructor is deprecated in JSF 2.3
3132
public PrimeResource(final Resource resource) {
3233
super();
3334
wrapped = resource;

src/main/java/org/primefaces/application/resource/PrimeResourceHandler.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@ public class PrimeResourceHandler extends ResourceHandlerWrapper {
3535

3636
private final ResourceHandler wrapped;
3737

38+
@SuppressWarnings("deprecation") // the default constructor is deprecated in JSF 2.3
3839
public PrimeResourceHandler(ResourceHandler wrapped) {
3940
this.wrapped = wrapped;
40-
handlers = new HashMap<String, DynamicContentHandler>();
41+
handlers = new HashMap<>();
4142
handlers.put(DynamicContentType.STREAMED_CONTENT.toString(), new StreamedContentHandler());
4243

4344
if (isBarcodeHandlerAvailable()) {

src/main/java/org/primefaces/context/PrimeExternalContext.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public class PrimeExternalContext extends ExternalContextWrapper {
2727
private ExternalContext wrapped;
2828
private HttpServletRequest httpServletRequest;
2929

30+
@SuppressWarnings("deprecation") // the default constructor is deprecated in JSF 2.3
3031
public PrimeExternalContext(ExternalContext wrapped) {
3132
this.wrapped = wrapped;
3233

src/main/java/org/primefaces/context/PrimeFacesContext.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public class PrimeFacesContext extends FacesContextWrapper {
3333
private MoveScriptsToBottomState moveScriptsToBottomState;
3434
private PrimeExternalContext externalContext;
3535

36+
@SuppressWarnings("deprecation") // the default constructor is deprecated in JSF 2.3
3637
public PrimeFacesContext(FacesContext wrapped) {
3738
this.wrapped = wrapped;
3839

src/main/java/org/primefaces/context/PrimeFacesContextFactory.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,12 @@ public class PrimeFacesContextFactory extends FacesContextFactory {
2828
private FacesContextFactory wrapped;
2929

3030
// #6212 - don't remove it
31+
@SuppressWarnings("deprecation") // the default constructor is deprecated in JSF 2.3
3132
public PrimeFacesContextFactory() {
3233

3334
}
3435

36+
@SuppressWarnings("deprecation") // the default constructor is deprecated in JSF 2.3
3537
public PrimeFacesContextFactory(FacesContextFactory wrapped) {
3638
this.wrapped = wrapped;
3739
}

src/main/java/org/primefaces/context/PrimePartialViewContext.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public class PrimePartialViewContext extends PartialViewContextWrapper {
3838
private PartialViewContext wrapped;
3939
private PartialResponseWriter writer = null;
4040

41+
@SuppressWarnings("deprecation") // the default constructor is deprecated in JSF 2.3
4142
public PrimePartialViewContext(PartialViewContext wrapped) {
4243
this.wrapped = wrapped;
4344
}

0 commit comments

Comments
 (0)