Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TeeTime-Framework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nelson Tavares de Sousa
TeeTime-Framework
Commits
7b3e4171
Commit
7b3e4171
authored
9 years ago
by
Christian Wulf
Browse files
Options
Downloads
Patches
Plain Diff
SingleElementPipe.add throw an exception upon adding null
parent
14a47e8b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/teetime/framework/pipe/SingleElementPipe.java
+5
-5
5 additions, 5 deletions
src/main/java/teetime/framework/pipe/SingleElementPipe.java
src/site/markdown/wiki
+1
-1
1 addition, 1 deletion
src/site/markdown/wiki
with
6 additions
and
6 deletions
src/main/java/teetime/framework/pipe/SingleElementPipe.java
+
5
−
5
View file @
7b3e4171
...
...
@@ -35,12 +35,12 @@ final class SingleElementPipe extends AbstractIntraThreadPipe {
@Override
public
boolean
add
(
final
Object
element
)
{
if
(
null
!=
element
)
{
this
.
element
=
element
;
this
.
reportNewElement
();
return
true
;
if
(
null
==
element
)
{
throw
new
IllegalArgumentException
(
"Parameter 'element' is null, but must be non-null."
);
}
return
false
;
this
.
element
=
element
;
this
.
reportNewElement
();
return
true
;
}
@Override
...
...
This diff is collapsed.
Click to expand it.
wiki
@
0e447457
Subproject commit
b20be6858bdfa41c8a928c157064c4efa0614069
Subproject commit
0e4474577e1f49bc96e734c286b2d9e0363895e8
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