Discover sonar static code analysis, include the articles, news, trends, analysis and practical advice about sonar static code analysis on alibabacloud.com
. onoptionsitemselected (item); + } - $ /** $ * A placeholder fragment containing a simple view. - *//* This is called in the above placeholder fragment? What the hell, it's like adding multiple fragment to fit the tablet's multi-block display, improving the user experience, and displaying it in a terminal such as a phone. */ - Public Static classPlaceholderfragmentextendsFragment { the - Publicplaceholderfragment () {Wuyi
AsyncTask source code analysis, asynctask source codeFor the usage of AsyncTask, see the previous blog "AsyncTask resumable upload". This article only parses the source code of AsyncTask. AsyncTask.exe cute method:
1 public final AsyncTaskThe executeOnexecute method is called directly in the execute method. AsyncTask.exe cuteOnexecute method:
1 public fi
JQuery. Data source code and jquery source code analysis
JQuery. data is the data cache system of jQuery. It is mainly used to add data for common objects or DOM elements.1. Internal Storage Principle
This principle is very simple. The data originally to be added to the DOM element is now centrally stored in the cache set. They are linked by a number key starti
MVC source code analysis, mvc source code
As shown in the previous article, there are four filters for program execution:
Filter Type
Interface
Description
Authorization
IAuthorizationFilter
This type (or filter) is used to restrict a behavior method to the Controller or controller.
Exception
IExceptionFilter
Specifies
powerful GPU debugging, CPU and GPU code analysis, and static OPENCL kernel performance analysis capabilities.
AMD provides stand-alone version CODEXL analysis tools that support Windows 7, Windows 8, and Linux systems. An expanded version of AMD Codexl is also available o
ArrayList construction method source code analysis, arraylist construction source code
First, let's take a look at the construction method without parameters:
private static final Object[] DEFAULTCAPACITY_EMPTY_ELEMENTDATA = {}; transient Object[] elementData; public ArrayList() { this.elementData = DEFAULTC
String source code analysis, string source code
The String class maintains a char [] type value to store strings. The source code is relatively simpler.1. Immutable
The immutability of String is mainly reflected in three aspects:
The String class is defined as the final type and cannot be inherited.
Value [] In Stri
MVC source code analysis, mvc source code
Next, let's take a look at the error processing filter.
Before reading this section, let's take a look at the functions provided by MVC.
I. built-in functions of MVC
1. configuration method
The mode is Off by default, indicating that the detailed error message is directly displayed on the page.
If it is On, no detailed e
Tomcat source code analysis-overall container structure, overall tomcat source code container
Tomcat is composed of multiple containers, and the Container and Connecter connector are the two core modules of Tomcat. The Connecter connector receives client requests, then, it passes the request from the client to the Container for processing and responds accordingly
Explanation of Android Application Context and source code analysis
1. Background
Today, I suddenly remembered that when I was in my previous company (for TV and BOX boxes), several people asked me what the Android Context was, so I am about to give birth to this article. We are always using Context when developing an App (not to mention that you have never used Context when accessing resources of the curr
changes, it is necessary to mark.Then everyone must be curious, how asynctask is implemented in Android, the following source analysis: From the beginning of our execution of the asynchronous task, enter the Execute method:Public final Asynctask18 Line: Set the current asynctask state to running, the above switch can also be seen, each asynchronous task can only be executed once before completion.20 Rows: Executed OnPreExecute (), currently still in
plug-in logic analysis to this, the whole process is not difficult to understand, we can simply look at it.4. Implement a paging plugin
In order to better introduce to you the plugin mechanism of MyBatis, I will write a paging plugin for MySQL. Talk is cheap. Show code.
@Intercepts ({@Signature (type = Executor.class,//target class method = "Query",//target methods args =
{mappedstatement.class, Object.cl
" class.
IServiceProvider class
IServiceProviderClass is a direct external interface in Microsoft's DependencyInjection. ServiceProvider directly implementsIServiceProviderIt also provides core functions for external users.
ServiceProvider must be able to obtain injection classes and injection classes of different ranges according to different definitions. ServiceProvider uses different logic for different ranges (Transient, Scoped, and Singleton. Let's make a simple
1. OverviewJquery is a very good JS library. Compared with many JS class libraries such as prototype, Yui, and mootools, it is a powerful tool, starting from the practical point of view of web development, aside from some other useless items in Lib, it provides developers with a short and concise class library. It is short, concise, easy to use, efficient in performance, and can greatly improve the development efficiency. It is one of the best auxiliary tools for developing web applications. The
Complete and comprehensive Java resource library (including construction, operation, code analysis, compiler, database, community, etc.) and java resource libraryBuild
The tools used to build applications are collected here.
Apache Maven: Maven uses declarations for building and dependency management. It prefers to use conventions instead of configurations for building. Maven is better than Apache Ant. Th
Complete and comprehensive Java resource library (including construction, operation, code analysis, compiler, database, community, etc.) and java resource libraryBuild
The tools used to build applications are collected here.
Apache Maven: Maven uses declarations for building and dependency management. It prefers to use conventions instead of configurations for building. Maven is better than Apache Ant.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.