You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2012/03/07 09:27:15 UTC
[1/2] git commit: WICKET-4439 Move classes around so that there are
no two packages with the same name in different modules
Updated Branches:
refs/heads/master 327aca0e1 -> 8b63cc687
WICKET-4439 Move classes around so that there are no two packages with the same name in different modules
Move o.a.w.serialize.ISerializer from -util to -core.
Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/16cd1218
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/16cd1218
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/16cd1218
Branch: refs/heads/master
Commit: 16cd12188fe0353aae335b176f740cd813cf2b9d
Parents: 327aca0
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Mon Mar 5 15:26:29 2012 +0200
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Wed Mar 7 10:26:40 2012 +0200
----------------------------------------------------------------------
.../org/apache/wicket/serialize/ISerializer.java | 42 +++++++++++++++
.../org/apache/wicket/serialize/ISerializer.java | 42 ---------------
2 files changed, 42 insertions(+), 42 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/wicket/blob/16cd1218/wicket-core/src/main/java/org/apache/wicket/serialize/ISerializer.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/serialize/ISerializer.java b/wicket-core/src/main/java/org/apache/wicket/serialize/ISerializer.java
new file mode 100644
index 0000000..c5ebd34
--- /dev/null
+++ b/wicket-core/src/main/java/org/apache/wicket/serialize/ISerializer.java
@@ -0,0 +1,42 @@
+/*
+ * 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.serialize;
+
+/**
+ * A serializer that can be used to convert an object to byte array and back
+ */
+public interface ISerializer
+{
+
+ /**
+ * Converts the object to byte array
+ *
+ * @param object
+ * the object to serialize
+ * @return the serialized page as byte array
+ */
+ byte[] serialize(Object object);
+
+ /**
+ * Reconstructs the object from its serialized state
+ *
+ * @param data
+ * the serialized state of the object
+ * @return the object reconstructed from its serialized state
+ */
+ Object deserialize(byte[] data);
+}
http://git-wip-us.apache.org/repos/asf/wicket/blob/16cd1218/wicket-util/src/main/java/org/apache/wicket/serialize/ISerializer.java
----------------------------------------------------------------------
diff --git a/wicket-util/src/main/java/org/apache/wicket/serialize/ISerializer.java b/wicket-util/src/main/java/org/apache/wicket/serialize/ISerializer.java
deleted file mode 100644
index c8b91e7..0000000
--- a/wicket-util/src/main/java/org/apache/wicket/serialize/ISerializer.java
+++ /dev/null
@@ -1,42 +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.serialize;
-
-/**
- * A serializer that can be used to convert an object to byte array and back
- */
-public interface ISerializer
-{
-
- /**
- * Converts the object to byte array
- *
- * @param object
- * the object to serialize
- * @return the serialized page as byte array
- */
- byte[] serialize(Object object);
-
- /**
- * Reconstructs the object from its serialized state
- *
- * @param data
- * the serialized state of the object
- * @return the object reconstructed from its serialized state
- */
- Object deserialize(byte[] data);
-}