Minor changes since Dan's changes
Changes to source text, and removal of useless images.
Change-Id: I9da0c26021df33cf2bb576b13a18a591d220d2a0
diff --git a/src/source/code-style.md b/src/source/code-style.md
index d3d09bc..f4d34d4 100644
--- a/src/source/code-style.md
+++ b/src/source/code-style.md
@@ -1,3 +1,19 @@
+<!--
+ Copyright 2010 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
# Code Style Guidelines for Contributors #
The rules below are not guidelines or recommendations, but strict rules.
@@ -17,16 +33,12 @@
Sometimes it is tempting to write code that completely ignores an exception
like this:
-<!--div style="display: inline-block"> <!-- Just to make the code not overlap the ToC -->
-
void setServerPort(String value) {
try {
serverPort = Integer.parseInt(value);
} catch (NumberFormatException e) { }
}
-<!-- /div -->
-
You must never do this. While you may think that your code will never
encounter this error condition or that it is not important to handle it,
ignoring exceptions like above creates mines in your code for someone else to