X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=bundles%2Forg.simantics.databoard%2Fsrc%2Forg%2Fsimantics%2Fdataboard%2Fbinding%2Fmutable%2FMutableByteBinding.java;h=fd97ac7c4394aa73352c39fa1a511290462d9c07;hb=refs%2Fchanges%2F38%2F238%2F2;hp=f37a237fbdc8743923c6e04f9e3ad48b12b01f2c;hpb=24e2b34260f219f0d1644ca7a138894980e25b14;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.databoard/src/org/simantics/databoard/binding/mutable/MutableByteBinding.java b/bundles/org.simantics.databoard/src/org/simantics/databoard/binding/mutable/MutableByteBinding.java index f37a237fb..fd97ac7c4 100644 --- a/bundles/org.simantics.databoard/src/org/simantics/databoard/binding/mutable/MutableByteBinding.java +++ b/bundles/org.simantics.databoard/src/org/simantics/databoard/binding/mutable/MutableByteBinding.java @@ -1,20 +1,20 @@ -/******************************************************************************* - * 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.binding.mutable; -import org.simantics.databoard.binding.ByteBinding; -import org.simantics.databoard.binding.error.BindingException; -import org.simantics.databoard.primitives.MutableByte; -import org.simantics.databoard.type.ByteType; +import org.simantics.databoard.binding.ByteBinding; +import org.simantics.databoard.binding.error.BindingException; +import org.simantics.databoard.primitives.MutableByte; +import org.simantics.databoard.type.ByteType; /** * Binds java.lang.Byte to {@link MutableByte} @@ -49,15 +49,15 @@ public class MutableByteBinding extends ByteBinding { } @Override - public Object create(String value) throws BindingException { - try { + public Object create(String value) throws BindingException { + try { byte x = Byte.valueOf( value ); MutableByte result = new MutableByte(); result.value = x; return result; - } catch (java.lang.NumberFormatException e) { - throw new BindingException( e ); - } + } catch (java.lang.NumberFormatException e) { + throw new BindingException( e ); + } } @Override