Kaydet (Commit) 11b205d0 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

wizards: simplify deprecated XTypeProvider.getImplementationId

Change-Id: I9ac8fc460fbdb957f3cae4c2cde42962daca0052
üst a3cdc0c6
......@@ -128,33 +128,9 @@ public class CallFormWizard
return (booleanSupportsService);
}
/** This method returns an array of bytes, that can be used to
* unambiguously distinguish between two sets of types, e.g.
* to realise hashing functionality when the object is introspected.
* Two objects that return the same ID also have to return
* the same set of types in getTypes(). If an unique
* implementation Id cannot be provided this method has to
* return an empty sequence. Important: If the object
* aggregates other objects the ID has to be unique for the
* whole combination of objects.
* @return Array of bytes, in order to distinguish between two sets.
*/
public byte[] getImplementationId()
{
byte[] byteReturn =
{
};
try
{
byteReturn = (PropertyNames.EMPTY_STRING + this.hashCode()).getBytes();
}
catch (Exception exception)
{
System.err.println(exception);
}
return (byteReturn);
return new byte[0];
}
/** Return the class name of the component.
......
......@@ -133,34 +133,10 @@ public class CallQueryWizard
return (booleanSupportsService);
}
/** This method returns an array of bytes, that can be used to
* unambiguously distinguish between two sets of types, e.g.
* to realise hashing functionality when the object is introspected.
* Two objects that return the same ID also have to return
* the same set of types in getTypes(). If an unique
* implementation Id cannot be provided this method has to
* return an empty sequence. Important: If the object
* aggregates other objects the ID has to be unique for the
* whole combination of objects.
* @return Array of bytes, in order to distinguish between two sets.
*/
@Override
public byte[] getImplementationId()
{
byte[] byteReturn =
{
};
try
{
byteReturn = (PropertyNames.EMPTY_STRING + this.hashCode()).getBytes();
}
catch (Exception exception)
{
System.err.println(exception);
}
return (byteReturn);
return new byte[0];
}
/** Return the class name of the component.
......
......@@ -160,33 +160,9 @@ public class CallReportWizard
return (booleanSupportsService);
}
/** This method returns an array of bytes, that can be used to
* unambiguously distinguish between two sets of types, e.g.
* to realise hashing functionality when the object is introspected.
* Two objects that return the same ID also have to return
* the same set of types in getTypes(). If an unique
* implementation Id cannot be provided this method has to
* return an empty sequence. Important: If the object
* aggregates other objects the ID has to be unique for the
* whole combination of objects.
* @return Array of bytes, in order to distinguish between two sets.
*/
public byte[] getImplementationId()
{
byte[] byteReturn =
{
};
try
{
byteReturn = (PropertyNames.EMPTY_STRING + this.hashCode()).getBytes();
}
catch (Exception e)
{
Logger.getLogger(CallReportWizard.class.getName()).log(Level.SEVERE, null, e);
}
return (byteReturn);
return new byte[0];
}
/** Return the class name of the component.
......
......@@ -135,33 +135,9 @@ public class CallTableWizard
return (booleanSupportsService);
}
/** This method returns an array of bytes, that can be used to
* unambiguously distinguish between two sets of types, e.g.
* to realise hashing functionality when the object is introspected.
* Two objects that return the same ID also have to return
* the same set of types in getTypes(). If an unique
* implementation Id cannot be provided this method has to
* return an empty sequence. Important: If the object
* aggregates other objects the ID has to be unique for the
* whole combination of objects.
* @return Array of bytes, in order to distinguish between two sets.
*/
public byte[] getImplementationId()
{
byte[] byteReturn =
{
};
try
{
byteReturn = (PropertyNames.EMPTY_STRING + this.hashCode()).getBytes();
}
catch (Exception exception)
{
System.err.println(exception);
}
return (byteReturn);
return new byte[0];
}
/** Return the class name of the component.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment