Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LatinIME
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
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
keyboard
LatinIME
Commits
f170f145
Commit
f170f145
authored
12 years ago
by
Kurt Partridge
Browse files
Options
Downloads
Patches
Plain Diff
[TestPrep11] Only use mHasWrittenData to control JsonWriter#endArray() call
Change-Id: If2107e38575b009a4c372194ecd827e27bdbb2b4
parent
a5e564be
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
java/src/com/android/inputmethod/research/ResearchLog.java
+5
-9
5 additions, 9 deletions
java/src/com/android/inputmethod/research/ResearchLog.java
with
5 additions
and
9 deletions
java/src/com/android/inputmethod/research/ResearchLog.java
+
5
−
9
View file @
f170f145
...
...
@@ -107,16 +107,12 @@ public class ResearchLog {
try
{
if
(
mHasWrittenData
)
{
mJsonWriter
.
endArray
();
mJsonWriter
.
flush
();
mJsonWriter
.
close
();
if
(
DEBUG
)
{
Log
.
d
(
TAG
,
"wrote log to "
+
mFile
);
}
mHasWrittenData
=
false
;
}
else
{
if
(
DEBUG
)
{
Log
.
d
(
TAG
,
"close() called, but no data, not outputting"
);
}
}
mJsonWriter
.
flush
();
mJsonWriter
.
close
();
if
(
DEBUG
)
{
Log
.
d
(
TAG
,
"wrote log to "
+
mFile
);
}
}
catch
(
Exception
e
)
{
Log
.
d
(
TAG
,
"error when closing ResearchLog:"
,
e
);
...
...
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