polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From paulmer...@apache.org
Subject [19/50] polygene-java git commit: :libraries:restlet refine
Date Mon, 15 May 2017 11:03:24 GMT
:libraries:restlet refine


Project: http://git-wip-us.apache.org/repos/asf/polygene-java/repo
Commit: http://git-wip-us.apache.org/repos/asf/polygene-java/commit/69fa6144
Tree: http://git-wip-us.apache.org/repos/asf/polygene-java/tree/69fa6144
Diff: http://git-wip-us.apache.org/repos/asf/polygene-java/diff/69fa6144

Branch: refs/heads/develop
Commit: 69fa61446b0270282900f3d8720550338a579849
Parents: 0caeeed
Author: Paul Merlin <paulmerlin@apache.org>
Authored: Mon May 15 10:25:12 2017 +0200
Committer: Paul Merlin <paulmerlin@apache.org>
Committed: Mon May 15 10:25:12 2017 +0200

----------------------------------------------------------------------
 .../library/restlet/serialization/FormRepresentation.java   | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/polygene-java/blob/69fa6144/libraries/restlet/src/main/java/org/apache/polygene/library/restlet/serialization/FormRepresentation.java
----------------------------------------------------------------------
diff --git a/libraries/restlet/src/main/java/org/apache/polygene/library/restlet/serialization/FormRepresentation.java
b/libraries/restlet/src/main/java/org/apache/polygene/library/restlet/serialization/FormRepresentation.java
index c0031b8..fbb9a34 100644
--- a/libraries/restlet/src/main/java/org/apache/polygene/library/restlet/serialization/FormRepresentation.java
+++ b/libraries/restlet/src/main/java/org/apache/polygene/library/restlet/serialization/FormRepresentation.java
@@ -82,14 +82,7 @@ public class FormRepresentation<T> extends OutputRepresentation
         final Form form = new Form( representation );
         ValueBuilder<T> builder = this.vbf.newValueBuilderWithState(
             objectClass,
-            new Function<PropertyDescriptor, Object>()
-            {
-                @Override
-                public Object apply( PropertyDescriptor descriptor )
-                {
-                    return form.getFirstValue( descriptor.qualifiedName().name() );
-                }
-            },
+            descriptor -> form.getFirstValue( descriptor.qualifiedName().name() ),
             descriptor -> null,
             descriptor -> null,
             descriptor -> null


Mime
View raw message