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
40e91e45
Commit
40e91e45
authored
11 years ago
by
Ken Wakasa
Committed by
Android (Google) Code Review
11 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Check the version of format options before writing."
parents
e531c224
8a06b26c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
java/src/com/android/inputmethod/latin/makedict/Ver3DictEncoder.java
+6
-0
6 additions, 0 deletions
...m/android/inputmethod/latin/makedict/Ver3DictEncoder.java
with
6 additions
and
0 deletions
java/src/com/android/inputmethod/latin/makedict/Ver3DictEncoder.java
+
6
−
0
View file @
40e91e45
...
@@ -68,6 +68,12 @@ public class Ver3DictEncoder implements DictEncoder {
...
@@ -68,6 +68,12 @@ public class Ver3DictEncoder implements DictEncoder {
@Override
@Override
public
void
writeDictionary
(
final
FusionDictionary
dict
,
final
FormatOptions
formatOptions
)
public
void
writeDictionary
(
final
FusionDictionary
dict
,
final
FormatOptions
formatOptions
)
throws
IOException
,
UnsupportedFormatException
{
throws
IOException
,
UnsupportedFormatException
{
if
(
formatOptions
.
mVersion
>
3
)
{
throw
new
UnsupportedFormatException
(
"The given format options has wrong version number : "
+
formatOptions
.
mVersion
);
}
if
(
mOutStream
==
null
)
{
if
(
mOutStream
==
null
)
{
openStream
();
openStream
();
}
}
...
...
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