Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
example_rest
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Gabriele Civitarese
example_rest
Commits
be7228dc
Commit
be7228dc
authored
May 08, 2020
by
Gabriele Civitarese
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
users to user
parent
4a43d17f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
Users.java
beans/Users.java
+4
-2
No files found.
beans/Users.java
View file @
be7228dc
...
@@ -15,7 +15,7 @@ import javax.xml.bind.annotation.XmlRootElement;
...
@@ -15,7 +15,7 @@ import javax.xml.bind.annotation.XmlRootElement;
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
Users
{
public
class
Users
{
@XmlElement
(
name
=
"user
s
"
)
@XmlElement
(
name
=
"user"
)
private
List
<
User
>
userslist
;
private
List
<
User
>
userslist
;
private
static
Users
instance
;
private
static
Users
instance
;
...
@@ -41,8 +41,10 @@ public class Users {
...
@@ -41,8 +41,10 @@ public class Users {
this
.
userslist
=
userslist
;
this
.
userslist
=
userslist
;
}
}
public
synchronized
void
add
(
User
u
){
public
synchronized
void
add
(
User
u
){
userslist
.
add
(
u
);
userslist
.
add
(
u
);
}
}
public
User
getByName
(
String
name
){
public
User
getByName
(
String
name
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment