X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.databoard%2Fexamples%2Forg%2Fsimantics%2Fdataboard%2Fexample%2Fold%2FAdaptionExample3.java;fp=bundles%2Forg.simantics.databoard%2Fexamples%2Forg%2Fsimantics%2Fdataboard%2Fexample%2Fold%2FAdaptionExample3.java;h=2185861d3e4bf12fce17560caecfb2f3d60f9bb7;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hp=06a676aa1cf09ecef087079649f8f4d27caeb324;hpb=24e2b34260f219f0d1644ca7a138894980e25b14;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.databoard/examples/org/simantics/databoard/example/old/AdaptionExample3.java b/bundles/org.simantics.databoard/examples/org/simantics/databoard/example/old/AdaptionExample3.java index 06a676aa1..2185861d3 100644 --- a/bundles/org.simantics.databoard/examples/org/simantics/databoard/example/old/AdaptionExample3.java +++ b/bundles/org.simantics.databoard/examples/org/simantics/databoard/example/old/AdaptionExample3.java @@ -1,22 +1,22 @@ -/******************************************************************************* - * Copyright (c) 2010 Association for Decentralized Information Management in - * Industry THTH ry. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ +/******************************************************************************* + * Copyright (c) 2010 Association for Decentralized Information Management in + * Industry THTH ry. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ package org.simantics.databoard.example.old; -import java.util.Arrays; - -import org.simantics.databoard.Bindings; -import org.simantics.databoard.annotations.Length; -import org.simantics.databoard.binding.Binding; -import org.simantics.databoard.serialization.Serializer; +import java.util.Arrays; + +import org.simantics.databoard.Bindings; +import org.simantics.databoard.annotations.Length; +import org.simantics.databoard.binding.Binding; +import org.simantics.databoard.serialization.Serializer; /** * In this duck-typing example, there are two classes with compatible contents. @@ -53,10 +53,10 @@ public class AdaptionExample3 { // Unserialize binary data to DoubleVector DoubleVector doubleVector = (DoubleVector) DoubleVectorSerializer.deserialize( data ); - System.out.printf("DoubleVector: %f, %f, %f\n", doubleVector.x, doubleVector.y, doubleVector.z); - - - + System.out.printf("DoubleVector: %f, %f, %f\n", doubleVector.x, doubleVector.y, doubleVector.z); + + + }