Project

General

Profile

Code Style Guide » History » Version 2

Igor Melnichenko, 05/22/2014 06:11 PM

1 1 Sergey Smolov
h1. Code Style Guide
2
3 2 Igor Melnichenko
In Retrascope project we use Google Java Code Style (http://google-styleguide.googlecode.com/svn/trunk/javaguide.html) and Oracle recommendations for Javadoc comments (http://www.oracle.com/technetwork/java/javase/documentation/index-137868.html).
4 1 Sergey Smolov
5
An Eclipse IDE profile and a PDF description of this format are attached to this document.
6
7
Also we start every Java class with the following license agreement:
8
9
<pre>
10
/*
11
 * Copyright 2014 ISP RAS (http://www.ispras.ru), UniTESK Lab (http://www.unitesk.com)
12
 *
13
 * Licensed under the Apache License, Version 2.0 (the "License");
14
 * you may not use this file except in compliance with the License.
15
 * You may obtain a copy of the License at
16
 *
17
 *     http://www.apache.org/licenses/LICENSE-2.0
18
 *
19
 * Unless required by applicable law or agreed to in writing, software
20
 * distributed under the License is distributed on an "AS IS" BASIS,
21
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22
 * See the License for the specific language governing permissions and
23
 * limitations under the License.
24
 */
25
</pre>
26
27
and with the following author data:
28
29
<pre>
30
/**
31
 * Class description.
32
 *
33
 * @author <a href="mailto:ivanov@mail.ru">Ivan Ivanov</a>
34
 */
35
</pre>