You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by pa...@apache.org on 2020/02/14 08:38:53 UTC
[wicket] 01/02: WICKET-6737: remove unneeded class
This is an automated email from the ASF dual-hosted git repository.
papegaaij pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/wicket.git
commit 648f29e52a173e6c312ee7ea298a129a76628f24
Author: Emond Papegaaij <em...@topicus.nl>
AuthorDate: Fri Feb 14 09:38:18 2020 +0100
WICKET-6737: remove unneeded class
---
.../apache/wicket/markup/html/debug/PageView.java | 4 ++-
.../html/debug/PageViewCSSResourceReference.java | 40 ----------------------
2 files changed, 3 insertions(+), 41 deletions(-)
diff --git a/wicket-core/src/main/java/org/apache/wicket/markup/html/debug/PageView.java b/wicket-core/src/main/java/org/apache/wicket/markup/html/debug/PageView.java
index bd02284..fb7cc60 100644
--- a/wicket-core/src/main/java/org/apache/wicket/markup/html/debug/PageView.java
+++ b/wicket-core/src/main/java/org/apache/wicket/markup/html/debug/PageView.java
@@ -30,6 +30,7 @@ import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.list.ListItem;
import org.apache.wicket.markup.html.list.ListView;
import org.apache.wicket.markup.html.panel.Panel;
+import org.apache.wicket.request.resource.CssResourceReference;
import org.apache.wicket.util.io.IClusterable;
import org.apache.wicket.util.lang.Bytes;
import org.apache.wicket.util.string.Strings;
@@ -232,6 +233,7 @@ public final class PageView extends Panel
public void renderHead(IHeaderResponse response)
{
super.renderHead(response);
- response.render(CssHeaderItem.forReference(PageViewCSSResourceReference.get()));
+ response.render(
+ CssHeaderItem.forReference(new CssResourceReference(PageView.class, "pageview.css")));
}
}
diff --git a/wicket-core/src/main/java/org/apache/wicket/markup/html/debug/PageViewCSSResourceReference.java b/wicket-core/src/main/java/org/apache/wicket/markup/html/debug/PageViewCSSResourceReference.java
deleted file mode 100644
index c786fc3..0000000
--- a/wicket-core/src/main/java/org/apache/wicket/markup/html/debug/PageViewCSSResourceReference.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.wicket.markup.html.debug;
-
-import org.apache.wicket.request.resource.CssResourceReference;
-
-/**
- * Singleton resource reference for pageview.css.
- * @author papegaaij
- */
-public final class PageViewCSSResourceReference extends CssResourceReference
-{
- private static final long serialVersionUID = 6795863553105608280L;
-
- private static final PageViewCSSResourceReference INSTANCE = new PageViewCSSResourceReference();
-
- public static PageViewCSSResourceReference get()
- {
- return INSTANCE;
- }
-
- private PageViewCSSResourceReference()
- {
- super(PageViewCSSResourceReference.class, "pageview.css");
- }
-}