Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
f5afd5fa
Commit
f5afd5fa
authored
17 years ago
by
ribeaudc
Browse files
Options
Downloads
Patches
Plain Diff
remove:
- Eclipse warnings. SVN: 2563
parent
2226a217
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/source/java/ch/systemsx/cisd/common/test/InterfaceForRMIChecker.java
+6
-6
6 additions, 6 deletions
.../ch/systemsx/cisd/common/test/InterfaceForRMIChecker.java
with
6 additions
and
6 deletions
common/source/java/ch/systemsx/cisd/common/test/InterfaceForRMIChecker.java
+
6
−
6
View file @
f5afd5fa
...
...
@@ -37,12 +37,12 @@ public class InterfaceForRMIChecker
* @throws AssertionError if <code>interfaze</code> is not an interface or a parameter type or
* a return value is not serializable.
*/
public
static
void
assertInterfaceForRMI
(
Class
interfaze
)
public
static
void
assertInterfaceForRMI
(
Class
<?>
interfaze
)
{
assert
interfaze
!=
null
:
"Unspecified interface."
;
assert
interfaze
.
isInterface
()
:
"Not an interface "
+
interfaze
;
Set
<
Class
>
visitedClasses
=
new
HashSet
<
Class
>();
Set
<
Class
<?>
>
visitedClasses
=
new
HashSet
<
Class
<?>
>();
Method
[]
methods
=
interfaze
.
getMethods
();
for
(
Method
method
:
methods
)
{
...
...
@@ -50,7 +50,7 @@ public class InterfaceForRMIChecker
}
}
private
static
void
assertMethodForRMI
(
Method
method
,
Set
<
Class
>
visitedClasses
)
private
static
void
assertMethodForRMI
(
Method
method
,
Set
<
Class
<?>
>
visitedClasses
)
{
Class
<?>[]
parameterTypes
=
method
.
getParameterTypes
();
for
(
Class
<?>
parameterType
:
parameterTypes
)
...
...
@@ -70,12 +70,12 @@ public class InterfaceForRMIChecker
* @throws AssertionError if <code>clazz</code> is not serializable or a non-transient non-static
* attribute isn't serializable.
*/
public
static
void
assertSerializable
(
Class
clazz
)
public
static
void
assertSerializable
(
Class
<?>
clazz
)
{
assertSerializable
(
clazz
,
new
HashSet
<
Class
>());
assertSerializable
(
clazz
,
new
HashSet
<
Class
<?>
>());
}
private
static
void
assertSerializable
(
Class
clazz
,
Set
<
Class
>
visitedClasses
)
private
static
void
assertSerializable
(
Class
<?>
clazz
,
Set
<
Class
<?>
>
visitedClasses
)
{
assert
clazz
!=
null
:
"Unspecified class."
;
if
(
clazz
.
isPrimitive
()
||
visitedClasses
.
contains
(
clazz
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment