Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xwiki-platform
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XWiki
xwiki-platform
Commits
04657c45
Commit
04657c45
authored
6 years ago
by
Thomas Mortagne
Browse files
Options
Downloads
Patches
Plain Diff
[misc] Improve codestyle
parent
a1ba22b4
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
xwiki-platform-core/xwiki-platform-refactoring/xwiki-platform-refactoring-api/src/main/java/org/xwiki/refactoring/internal/listener/BackLinkUpdaterListener.java
+11
-13
11 additions, 13 deletions
...efactoring/internal/listener/BackLinkUpdaterListener.java
with
11 additions
and
13 deletions
xwiki-platform-core/xwiki-platform-refactoring/xwiki-platform-refactoring-api/src/main/java/org/xwiki/refactoring/internal/listener/BackLinkUpdaterListener.java
+
11
−
13
View file @
04657c45
...
@@ -122,19 +122,16 @@ private void updateBackLinks(DocumentRenamedEvent event, Predicate<EntityReferen
...
@@ -122,19 +122,16 @@ private void updateBackLinks(DocumentRenamedEvent event, Predicate<EntityReferen
}
}
}
}
boolean
popLevelProgress
=
false
;
if
(!
wikiIds
.
isEmpty
())
{
try
{
this
.
progressManager
.
pushLevelProgress
(
wikiIds
.
size
(),
this
);
if
(
wikiIds
.
size
()
>
0
)
{
this
.
progressManager
.
pushLevelProgress
(
wikiIds
.
size
(),
this
);
try
{
popLevelProgress
=
true
;
for
(
String
wikiId
:
wikiIds
)
{
}
this
.
progressManager
.
startStep
(
this
);
for
(
String
wikiId
:
wikiIds
)
{
updateBackLinks
(
event
,
canEdit
,
wikiId
);
this
.
progressManager
.
startStep
(
this
);
this
.
progressManager
.
endStep
(
this
);
updateBackLinks
(
event
,
canEdit
,
wikiId
);
}
this
.
progressManager
.
endStep
(
this
);
}
finally
{
}
}
finally
{
if
(
popLevelProgress
)
{
this
.
progressManager
.
popLevelProgress
(
this
);
this
.
progressManager
.
popLevelProgress
(
this
);
}
}
}
}
...
@@ -145,6 +142,7 @@ private void updateBackLinks(DocumentRenamedEvent event, Predicate<EntityReferen
...
@@ -145,6 +142,7 @@ private void updateBackLinks(DocumentRenamedEvent event, Predicate<EntityReferen
this
.
logger
.
info
(
"Updating the back-links for document [{}] in wiki [{}]."
,
event
.
getSourceReference
(),
wikiId
);
this
.
logger
.
info
(
"Updating the back-links for document [{}] in wiki [{}]."
,
event
.
getSourceReference
(),
wikiId
);
List
<
DocumentReference
>
backlinkDocumentReferences
=
List
<
DocumentReference
>
backlinkDocumentReferences
=
this
.
modelBridge
.
getBackLinkedReferences
(
event
.
getSourceReference
(),
wikiId
);
this
.
modelBridge
.
getBackLinkedReferences
(
event
.
getSourceReference
(),
wikiId
);
this
.
progressManager
.
pushLevelProgress
(
backlinkDocumentReferences
.
size
(),
this
);
this
.
progressManager
.
pushLevelProgress
(
backlinkDocumentReferences
.
size
(),
this
);
try
{
try
{
...
...
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