You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by sv...@apache.org on 2018/06/25 16:01:01 UTC
wicket git commit: WICKET-6544 deprecated UserAgent
Repository: wicket
Updated Branches:
refs/heads/wicket-8.x 48468a1b0 -> ba3a4bfde
WICKET-6544 deprecated UserAgent
Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/ba3a4bfd
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/ba3a4bfd
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/ba3a4bfd
Branch: refs/heads/wicket-8.x
Commit: ba3a4bfde623c9a68533d6eda9c65034cb8ee8ce
Parents: 48468a1
Author: Sven Meier <sv...@apache.org>
Authored: Mon Jun 25 17:59:21 2018 +0200
Committer: Sven Meier <sv...@apache.org>
Committed: Mon Jun 25 17:59:21 2018 +0200
----------------------------------------------------------------------
.../wicket/protocol/http/ClientProperties.java | 20 ++++++++++++++++++++
.../wicket/protocol/http/request/UserAgent.java | 3 +++
.../DynamicJQueryResourceReference.java | 1 +
3 files changed, 24 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/wicket/blob/ba3a4bfd/wicket-core/src/main/java/org/apache/wicket/protocol/http/ClientProperties.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/protocol/http/ClientProperties.java b/wicket-core/src/main/java/org/apache/wicket/protocol/http/ClientProperties.java
index fd162b0..aee2a3c 100644
--- a/wicket-core/src/main/java/org/apache/wicket/protocol/http/ClientProperties.java
+++ b/wicket-core/src/main/java/org/apache/wicket/protocol/http/ClientProperties.java
@@ -100,6 +100,7 @@ public class ClientProperties implements IClusterable
/**
* @return The major version number of the browser.
*/
+ @Deprecated
public int getBrowserVersionMajor()
{
return browserVersionMajor;
@@ -108,6 +109,7 @@ public class ClientProperties implements IClusterable
/**
* @return The minor version number of the browser.
*/
+ @Deprecated
public int getBrowserVersionMinor()
{
return browserVersionMinor;
@@ -370,6 +372,7 @@ public class ClientProperties implements IClusterable
*
* @return True if a derivative of the Microsoft Internet Explorer browser platform.
*/
+ @Deprecated
public boolean isBrowserInternetExplorer()
{
return browserInternetExplorer;
@@ -380,6 +383,7 @@ public class ClientProperties implements IClusterable
*
* @return True if a derivative of the KDE Konqueror browser platform.
*/
+ @Deprecated
public boolean isBrowserKonqueror()
{
return browserKonqueror;
@@ -390,6 +394,7 @@ public class ClientProperties implements IClusterable
*
* @return True if a derivative of the Mozilla 1.0-1.8+ browser platform.
*/
+ @Deprecated
public boolean isBrowserMozilla()
{
return browserMozilla;
@@ -401,6 +406,7 @@ public class ClientProperties implements IClusterable
*
* @return True if a derivative of the Mozilla Firefox 1.0+ browser platform.
*/
+ @Deprecated
public boolean isBrowserMozillaFirefox()
{
return browserMozillaFirefox;
@@ -411,6 +417,7 @@ public class ClientProperties implements IClusterable
*
* @return True if a derivative of the Opera browser platform.
*/
+ @Deprecated
public boolean isBrowserOpera()
{
return browserOpera;
@@ -421,6 +428,7 @@ public class ClientProperties implements IClusterable
*
* @return True if a derivative of the Apple Safari browser platform.
*/
+ @Deprecated
public boolean isBrowserSafari()
{
return browserSafari;
@@ -431,6 +439,7 @@ public class ClientProperties implements IClusterable
*
* @return True if a derivative of the Chrome browser platform.
*/
+ @Deprecated
public boolean isBrowserChrome()
{
return browserChrome;
@@ -440,6 +449,7 @@ public class ClientProperties implements IClusterable
*
* @return True if a derivative of the Microsoft Edge browser platform.
*/
+ @Deprecated
public boolean isBrowserEdge()
{
return browserEdge;
@@ -484,6 +494,7 @@ public class ClientProperties implements IClusterable
* @param browserInternetExplorer
* True if a derivative of the Microsoft Internet Explorer browser platform.
*/
+ @Deprecated
public void setBrowserInternetExplorer(boolean browserInternetExplorer)
{
this.browserInternetExplorer = browserInternetExplorer;
@@ -495,6 +506,7 @@ public class ClientProperties implements IClusterable
* @param browserKonqueror
* True if a derivative of the KDE Konqueror browser platform.
*/
+ @Deprecated
public void setBrowserKonqueror(boolean browserKonqueror)
{
this.browserKonqueror = browserKonqueror;
@@ -506,6 +518,7 @@ public class ClientProperties implements IClusterable
* @param browserMozilla
* True if a derivative of the Mozilla 1.0-1.8+ browser platform.
*/
+ @Deprecated
public void setBrowserMozilla(boolean browserMozilla)
{
this.browserMozilla = browserMozilla;
@@ -518,6 +531,7 @@ public class ClientProperties implements IClusterable
* @param browserMozillaFirefox
* True if a derivative of the Mozilla Firefox 1.0+ browser platform.
*/
+ @Deprecated
public void setBrowserMozillaFirefox(boolean browserMozillaFirefox)
{
this.browserMozillaFirefox = browserMozillaFirefox;
@@ -529,6 +543,7 @@ public class ClientProperties implements IClusterable
* @param browserOpera
* True if a derivative of the Opera browser platform.
*/
+ @Deprecated
public void setBrowserOpera(boolean browserOpera)
{
this.browserOpera = browserOpera;
@@ -540,6 +555,7 @@ public class ClientProperties implements IClusterable
* @param browserSafari
* True if a derivative of the Apple Safari browser platform.
*/
+ @Deprecated
public void setBrowserSafari(boolean browserSafari)
{
this.browserSafari = browserSafari;
@@ -551,6 +567,7 @@ public class ClientProperties implements IClusterable
* @param browserChrome
* True if a derivative of the Chrome browser platform.
*/
+ @Deprecated
public void setBrowserChrome(boolean browserChrome)
{
this.browserChrome = browserChrome;
@@ -561,6 +578,7 @@ public class ClientProperties implements IClusterable
* @param browserEdge
* True if a derivative of the Microsoft Edge browser platform.
*/
+ @Deprecated
public void setBrowserEdge(boolean browserEdge)
{
this.browserEdge = browserEdge;
@@ -570,6 +588,7 @@ public class ClientProperties implements IClusterable
* @param browserVersionMajor
* The major version number of the browser.
*/
+ @Deprecated
public void setBrowserVersionMajor(int browserVersionMajor)
{
this.browserVersionMajor = browserVersionMajor;
@@ -579,6 +598,7 @@ public class ClientProperties implements IClusterable
* @param browserVersionMinor
* The minor version number of the browser.
*/
+ @Deprecated
public void setBrowserVersionMinor(int browserVersionMinor)
{
this.browserVersionMinor = browserVersionMinor;
http://git-wip-us.apache.org/repos/asf/wicket/blob/ba3a4bfd/wicket-core/src/main/java/org/apache/wicket/protocol/http/request/UserAgent.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/protocol/http/request/UserAgent.java b/wicket-core/src/main/java/org/apache/wicket/protocol/http/request/UserAgent.java
index e198166..3186948 100644
--- a/wicket-core/src/main/java/org/apache/wicket/protocol/http/request/UserAgent.java
+++ b/wicket-core/src/main/java/org/apache/wicket/protocol/http/request/UserAgent.java
@@ -23,7 +23,10 @@ import org.apache.wicket.util.string.Strings;
/**
* UserAgent
+ *
+ * @deprecated will be remove in Wicket 9 - use {@link https://github.com/nielsbasjes/yauaa} as a possible alternative instead
*/
+@Deprecated
enum UserAgent {
MOZILLA("Opera,AppleWebKit,Konqueror,Trident", Arrays.asList("Mozilla", "Gecko")),
http://git-wip-us.apache.org/repos/asf/wicket/blob/ba3a4bfd/wicket-core/src/main/java/org/apache/wicket/resource/DynamicJQueryResourceReference.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/resource/DynamicJQueryResourceReference.java b/wicket-core/src/main/java/org/apache/wicket/resource/DynamicJQueryResourceReference.java
index 65768e5..24cb0ba 100644
--- a/wicket-core/src/main/java/org/apache/wicket/resource/DynamicJQueryResourceReference.java
+++ b/wicket-core/src/main/java/org/apache/wicket/resource/DynamicJQueryResourceReference.java
@@ -35,6 +35,7 @@ import org.apache.wicket.request.cycle.RequestCycle;
*
* @since 6.9.0
*/
+@Deprecated
public class DynamicJQueryResourceReference extends JQueryResourceReference
{
private static final long serialVersionUID = 1L;